aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 11:10:16 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 11:10:16 +0000
commitc3cc282f7f23abb36c10e4df489c04976b9b4004 (patch)
tree1e32deac9ee694c480fd5e81bcb4e6327776e73b /vm_eval.c
parent5ac1972c1a7b56aa1aace73b30c1a8fcd8705ac8 (diff)
downloadruby-c3cc282f7f23abb36c10e4df489c04976b9b4004.tar.gz
* class.c (clone_method): remove redundant check for me->def != NULL.
Now, all `me` have `me->def`. * proc.c (rb_method_entry_location): ditto. * vm.c (rb_vm_check_redefinition_opt_method): ditto. * vm.c (add_opt_method): ditto. * vm_eval.c (vm_call0_body): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/vm_eval.c b/vm_eval.c
index bd7d76214b..cd8e75a657 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -153,8 +153,6 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv)
{
VALUE ret;
- if (!ci->me->def) return Qnil;
-
if (th->passed_block) {
ci->blockptr = (rb_block_t *)th->passed_block;
th->passed_block = 0;
@@ -213,7 +211,6 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv)
goto success;
}
RUBY_VM_CHECK_INTS(th);
- if (!ci->me->def) return Qnil;
goto again;
}
case VM_METHOD_TYPE_ALIAS: