ruby-changes:24388
From: nobu <ko1@a...>
Date: Wed, 18 Jul 2012 17:40:28 +0900 (JST)
Subject: [ruby-changes:24388] nobu:r36439 (trunk): vm.c: remove unused variables
nobu 2012-07-18 17:40:17 +0900 (Wed, 18 Jul 2012) New Revision: 36439 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36439 Log: vm.c: remove unused variables * vm.c (invoke_block_from_c), vm_insnhelper.c (vm_call_cfunc): remove unused variables. Modified files: trunk/vm.c trunk/vm_insnhelper.c Index: vm.c =================================================================== --- vm.c (revision 36438) +++ vm.c (revision 36439) @@ -581,7 +581,6 @@ else if (BUILTIN_TYPE(block->iseq) != T_NODE) { const rb_iseq_t *iseq = block->iseq; const rb_control_frame_t *cfp; - rb_control_frame_t *ncfp; int i, opt_pc, arg_size = iseq->arg_size; int type = block_proc_is_lambda(block->proc) ? VM_FRAME_MAGIC_LAMBDA : VM_FRAME_MAGIC_BLOCK; @@ -596,10 +595,10 @@ opt_pc = vm_yield_setup_args(th, iseq, argc, cfp->sp, blockptr, type == VM_FRAME_MAGIC_LAMBDA); - ncfp = vm_push_frame(th, iseq, type | VM_FRAME_FLAG_FINISH, - self, VM_ENVVAL_PREV_EP_PTR(block->ep), - iseq->iseq_encoded + opt_pc, cfp->sp + arg_size, iseq->local_size - arg_size, - th->passed_me); + vm_push_frame(th, iseq, type | VM_FRAME_FLAG_FINISH, + self, VM_ENVVAL_PREV_EP_PTR(block->ep), + iseq->iseq_encoded + opt_pc, cfp->sp + arg_size, iseq->local_size - arg_size, + th->passed_me); th->passed_me = 0; th->passed_block = blockptr; Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 36438) +++ vm_insnhelper.c (revision 36439) @@ -419,12 +419,11 @@ { volatile VALUE val = 0; const rb_method_definition_t *def = me->def; - rb_control_frame_t *cfp; EXEC_EVENT_HOOK(th, RUBY_EVENT_C_CALL, recv, me->called_id, me->klass); - cfp = vm_push_frame(th, 0, VM_FRAME_MAGIC_CFUNC, recv, - VM_ENVVAL_BLOCK_PTR(blockptr), 0, th->cfp->sp, 1, me); + vm_push_frame(th, 0, VM_FRAME_MAGIC_CFUNC, recv, + VM_ENVVAL_BLOCK_PTR(blockptr), 0, th->cfp->sp, 1, me); reg_cfp->sp -= num + 1; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/