Skip to content

Commit

Permalink
vm_eval.c: remove dead code
Browse files Browse the repository at this point in the history
* vm_eval.c (vm_call_super): since cfp->klass is always class or
  iclass, no search from method entry.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Aug 6, 2012
1 parent cc48423 commit d93d45f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Mon Aug 6 11:34:33 2012 Nobuyoshi Nakada <[email protected]>
Mon Aug 6 13:13:58 2012 Nobuyoshi Nakada <[email protected]>

* vm_eval.c (vm_call_super): since cfp->klass is always class or
iclass, no search from method entry.

* insns.def (defined): now should use klass in the current control
frame to search superclass, not me->klass. reported by naruse.
Expand Down
4 changes: 0 additions & 4 deletions vm_eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ vm_call_super(rb_thread_t *th, int argc, const VALUE *argv)

if (!cfp->iseq && !NIL_P(cfp->klass)) {
klass = RCLASS_SUPER(cfp->klass);

if (klass == 0) {
klass = vm_search_normal_superclass(cfp->me->klass);
}
id = cfp->me->def->original_id;
}
else {
Expand Down

0 comments on commit d93d45f

Please sign in to comment.