From 78f8ad683be65653d14b970674c5079b6f512cc6 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 17 Aug 2012 02:13:31 +0000 Subject: vm_trace.c: remove meaningless assingments * vm_trace.c (call_trace_func): remove meaningless assingments to same variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_trace.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vm_trace.c b/vm_trace.c index 23ad2a8ea1..aff71cc876 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -510,11 +510,7 @@ call_trace_func(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klas int line = rb_sourceline(); rb_thread_t *th = GET_THREAD(); - if (klass != 0) { - id = id; - klass = klass; - } - else { + if (!klass) { rb_thread_method_id_and_class(th, &id, &klass); } -- cgit v1.2.3