Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions core/src/main/java/org/jruby/ast/ArgsNode.java
Original file line number Diff line number Diff line change
@@ -61,7 +61,6 @@ public class ArgsNode extends Node {
protected final ArgumentNode restArgNode;
private final KeywordRestArgNode keyRest;
private final BlockArgNode blockArgNode;
private ListNode blockLocalVariables = null;

private static final Node[] NO_ARGS = new Node[] {};
/**
@@ -272,12 +271,4 @@ public int getRequiredKeywordCount() {
}
return count;
}

public ListNode getBlockLocalVariables() {
return blockLocalVariables;
}

public void setBlockLocalVariables(ListNode blockLocalVariables) {
this.blockLocalVariables = blockLocalVariables;
}
}
Original file line number Diff line number Diff line change
@@ -132,12 +132,6 @@ public BlockDefinitionNode compileBlockNode(RubySourceSection sourceSection, Str

parentSourceSection.push(sourceSection);
try {
if (argsNode.getBlockLocalVariables() != null && !argsNode.getBlockLocalVariables().isEmpty()) {
for (org.jruby.ast.Node var : argsNode.getBlockLocalVariables().children()) {
environment.declareVar(((INameNode) var).getName());
}
}

body = translateNodeOrNil(sourceSection, bodyNode);

if (context.getOptions().CHAOS) {

0 comments on commit 418dc70

Please sign in to comment.