From c8854d2ca4be9ee6946e6d17b0e17d9ef130ee81 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 6 Jul 2015 09:02:34 +0000 Subject: * vm_insnhelper.c (vm_search_super_method): do not skip calling same methods in super. [Bug #3351] * test/ruby/test_super.rb: fix a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 639efeef1c..2c6e76ce6e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2277,15 +2277,6 @@ vm_search_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_inf /* TODO: use inline cache */ ci->me = rb_callable_method_entry(ci->klass, ci->mid); ci->call = vm_call_super_method; - - while (iseq && !iseq->klass) { - iseq = iseq->parent_iseq; - } - - if (ci->me && ci->me->def->type == VM_METHOD_TYPE_ISEQ && def_iseq_ptr(ci->me->def) == iseq) { - ci->klass = RCLASS_SUPER(ci->me->defined_class); - ci->me = rb_callable_method_entry(ci->klass, ci->mid); - } } /* yield */ -- cgit v1.2.3