summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 8694f524f6..c8cbaa07bf 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2024,11 +2024,6 @@ vm_search_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_inf
" by define_method() is not supported."
" Specify all arguments explicitly.");
}
- if (!ci->klass) {
- ci->aux.missing_reason = NOEX_SUPER;
- CI_SET_FASTPATH(ci, vm_call_method_missing, 1);
- return;
- }
/* TODO: use inline cache */
ci->me = rb_method_entry(ci->klass, ci->mid, &ci->defined_class);