From b66d7d9be56c27bc1b6ff5a6d8f0ca23de7ed28a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 6 Apr 2020 02:00:22 -0700 Subject: Remove unused variable stack_size _mjit_compile_send.erb doesn't use _mjit_compile_insn_body.erb --- tool/ruby_vm/views/_mjit_compile_send.erb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tool') diff --git a/tool/ruby_vm/views/_mjit_compile_send.erb b/tool/ruby_vm/views/_mjit_compile_send.erb index a5db6e7f44..0e033a4ebe 100644 --- a/tool/ruby_vm/views/_mjit_compile_send.erb +++ b/tool/ruby_vm/views/_mjit_compile_send.erb @@ -25,12 +25,7 @@ int param_size = iseq->body->param.size; int sp_inc = (int)sp_inc_of_sendish(ci); - fprintf(f, "{\n"); -% # JIT: Declare stack_size to be used in some macro of _mjit_compile_insn_body.erb - if (status->local_stack_p) { - fprintf(f, " MAYBE_UNUSED(unsigned int) stack_size = %u;\n", b->stack_size); - } % # JIT: Invalidate call cache if it requires vm_search_method. This allows to inline some of following things. fprintf(f, " const struct rb_callcache *cc = (const struct rb_callcache *)0x%"PRIxVALUE";\n", (VALUE)captured_cc); -- cgit v1.2.3