Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -534,14 +534,6 @@ public RubyNode visitCallNode(org.jruby.ast.CallNode node) {
final RubyNode ret = AssertNotCompiledNodeGen.create(context, sourceSection);
return addNewlineIfNeeded(node, ret);
}
} else if (receiver instanceof org.jruby.ast.ConstNode // Truffle.omit
&& ((org.jruby.ast.ConstNode) receiver).getName().equals("Truffle")) {
if (methodName.equals("omit")) {
// We're never going to run the omitted code and it's never used as the RHS for anything, so just
// replace the call with nil.
final RubyNode ret = nilNode(sourceSection);
return addNewlineIfNeeded(node, ret);
}
} else if (receiver instanceof org.jruby.ast.VCallNode // undefined.equal?(obj)
&& ((org.jruby.ast.VCallNode) receiver).getName().equals("undefined")
&& getSourcePath(sourceSection).startsWith(buildCorePath(""))

0 comments on commit 0a624fb

Please sign in to comment.