10000 [PRISM] Remove unused variable by peterzhu2118 · Pull Request #9759 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

[PRISM] Remove unused variable #9759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions prism_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 453E _node);
}
}
Expand Down
0