Skip to content

Commit

Permalink
Remove unconditional warning here.
Browse files Browse the repository at this point in the history
I believe this was left in from dev time when we were still
sorting out how to treate evals with blocks. The common case that
produces the warning is from #3541, when a Symbol#to_proc is used
for an instance_exec or instance_eval. These are valid uses of
the proc and work correctly (using the receiver as the "self" for
the proc's symbol dispatch).

Because all the remaining block bodies that would trigger this
warning are Java-based blocks without any concept of frame/scope
binding, and since they still honor the incoming self, I'm going
to just remove the warning.

Fixes #3541.
  • Loading branch information
headius committed Jan 29, 2016
1 parent 4cd1fbc commit 06fcde1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/src/main/java/org/jruby/runtime/BlockBody.java
Expand Up @@ -58,7 +58,6 @@ public Signature getSignature() {
}

public void setEvalType(EvalType evalType) {
System.err.println("setEvalType unimplemented in " + this.getClass().getName());
}

public boolean canCallDirect() {
Expand Down

0 comments on commit 06fcde1

Please sign in to comment.