summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--vm.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c95614ef27..5bcbb305da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/vm.c b/vm.c
index 1b255c7124..741d9c7708 100644
--- a/vm.c
+++ b/vm.c
@@ -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");