[PRISM] Remove unused variable

This commit is contained in:
Peter Zhu 2024-01-30 09:37:52 -05:00
parent 846f87ee0a
commit c85e28d12a

View File

@ -6512,7 +6512,6 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
// We will assign these values now, if applicable, and use them for
// the ISEQs on these multis
int required_multis_hidden_index = local_index;
int post_multis_hidden_index = 0;
// Here we figure out local table indices and insert them in to the
@ -7026,7 +7025,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
const pm_node_t *required = requireds_list->nodes[i];
if (PM_NODE_TYPE_P(required, PM_MULTI_TARGET_NODE)) {
ADD_GETLOCAL(ret, &dummy_line_node, table_size - required_multis_hidden_index - (int) i, 0);
ADD_GETLOCAL(ret, &dummy_line_node, table_size - (int)i, 0);
pm_compile_destructured_param_writes(iseq, (const pm_multi_target_node_t *) required, ret, scope_node);
}
}