Skip to content

Commit

Permalink
[truffle] Remove helper method that is used once
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Jul 8, 2018
1 parent 85ed2ce commit 44fff18
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -40,10 +40,6 @@ public void run(SixModelObject node, ThreadContext tc) {
callTarget.call();
}

private NQPNode[] expressions(SixModelObject node, NQPScope scope, ThreadContext tc) {
return expressions(node, 1, scope, tc);
}

protected NQPNode[] expressions(SixModelObject node, int from, NQPScope scope, ThreadContext tc) {
int elems = (int) node.elems(tc);
NQPNode children[] = new NQPNode[elems - from];
Expand Down Expand Up @@ -88,7 +84,7 @@ public NQPNode build(SixModelObject node, NQPScope scope, ThreadContext tc) {
}
case "block": {
FrameDescriptor frameDescriptor = new FrameDescriptor();
NQPNode children[] = expressions(node, new NQPScopeWithFrame(frameDescriptor, scope), tc);
NQPNode children[] = expressions(node, 1, new NQPScopeWithFrame(frameDescriptor, scope), tc);
return new NQPBlockNode(
new NQPRootNode(null, frameDescriptor, new NQPBlockBodyNode(children))
);
Expand Down

0 comments on commit 44fff18

Please sign in to comment.