Skip to content

Commit

Permalink
Whoop forgot to remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Nov 4, 2014
1 parent f0cd104 commit d3e98b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/main/java/org/jruby/ir/representations/CFG.java
Expand Up @@ -6,7 +6,6 @@
import org.jruby.ir.instructions.*;
import org.jruby.ir.operands.Label;
import org.jruby.ir.operands.Operand;
import org.jruby.ir.operands.OperandType;
import org.jruby.ir.operands.Variable;
import org.jruby.ir.operands.WrappedIRClosure;
import org.jruby.ir.transformations.inlining.CloneInfo;
Expand Down Expand Up @@ -515,9 +514,7 @@ private void removeNestedScopesFromBB(BasicBlock bb) {
for (Instr instr: bb.getInstrs()) {
for (Operand oper: instr.getOperands()) {
if (oper instanceof WrappedIRClosure) {
WrappedIRClosure closure = (WrappedIRClosure) oper;

scope.removeClosure(closure.getClosure());
scope.removeClosure(((WrappedIRClosure) oper).getClosure());
break; // Only one WrappedIRClosure possible per instr
}
}
Expand Down

0 comments on commit d3e98b6

Please sign in to comment.