diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Jul 7 04:12:32 2015 Koichi Sasada <ko1@atdot.net> + + * vm.c (vm_define_method): remove an unused local variable. + Tue Jul 7 03:57:28 2015 Koichi Sasada <ko1@atdot.net> * vm_core.h: remove rb_iseq_t::defined_method_id because it is not @@ -2275,8 +2275,6 @@ vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval, VALUE klass = CREF_CLASS(cref); const rb_scope_visibility_t *scope_visi = CREF_SCOPE_VISI(cref); rb_method_visibility_t visi = scope_visi->method_visi; - rb_iseq_t *miseq; - GetISeqPtr(iseqval, miseq); if (NIL_P(klass)) { rb_raise(rb_eTypeError, "no class/module to add method"); |