ruby-changes:25212
From: ko1 <ko1@a...>
Date: Fri, 19 Oct 2012 10:25:22 +0900 (JST)
Subject: [ruby-changes:25212] ko1:r37264 (trunk): * vm_insnhelper.c (vm_search_method): remove needless local variable.
ko1 2012-10-19 10:24:50 +0900 (Fri, 19 Oct 2012) New Revision: 37264 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37264 Log: * vm_insnhelper.c (vm_search_method): remove needless local variable. Modified files: trunk/ChangeLog trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37263) +++ ChangeLog (revision 37264) @@ -1,3 +1,7 @@ +Fri Oct 19 10:24:03 2012 Koichi Sasada <ko1@a...> + + * vm_insnhelper.c (vm_search_method): remove needless local variable. + Fri Oct 19 10:22:26 2012 Koichi Sasada <ko1@a...> * benchmark/bmx_temp.rb: removed. Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 37263) +++ vm_insnhelper.c (revision 37264) @@ -843,15 +843,13 @@ vm_search_method(rb_call_info_t *ci, VALUE recv) { VALUE klass = CLASS_OF(recv); - rb_method_entry_t *me; #if OPT_INLINE_METHOD_CACHE if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && klass == ci->klass)) { /* cache hit! */ } else { - me = rb_method_entry(klass, ci->mid, &ci->defined_class); - ci->me = me; + ci->me = rb_method_entry(klass, ci->mid, &ci->defined_class); ci->klass = klass; ci->vmstat = GET_VM_STATE_VERSION(); ci->call = vm_call_general; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/