mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove ruby2_keywords related to args forwarding
This was introduced byb609bdeb53
to suppress warnings. However these warngins were deleted bybeae6cbf0f
. Therefore these codes are not needed anymore.
This commit is contained in:
parent
bb6f933d51
commit
8be62f06c8
Notes:
git
2022-11-29 06:40:16 +00:00
3 changed files with 0 additions and 4 deletions
|
@ -1832,7 +1832,6 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons
|
||||||
|
|
||||||
EXPECT_NODE("iseq_set_arguments", node_args, NODE_ARGS, COMPILE_NG);
|
EXPECT_NODE("iseq_set_arguments", node_args, NODE_ARGS, COMPILE_NG);
|
||||||
|
|
||||||
body->param.flags.ruby2_keywords = args->ruby2_keywords;
|
|
||||||
body->param.lead_num = arg_size = (int)args->pre_args_num;
|
body->param.lead_num = arg_size = (int)args->pre_args_num;
|
||||||
if (body->param.lead_num > 0) body->param.flags.has_lead = TRUE;
|
if (body->param.lead_num > 0) body->param.flags.has_lead = TRUE;
|
||||||
debugs(" - argc: %d\n", body->param.lead_num);
|
debugs(" - argc: %d\n", body->param.lead_num);
|
||||||
|
|
1
node.h
1
node.h
|
@ -462,7 +462,6 @@ struct rb_args_info {
|
||||||
|
|
||||||
NODE *opt_args;
|
NODE *opt_args;
|
||||||
unsigned int no_kwarg: 1;
|
unsigned int no_kwarg: 1;
|
||||||
unsigned int ruby2_keywords: 1;
|
|
||||||
unsigned int forwarding: 1;
|
unsigned int forwarding: 1;
|
||||||
|
|
||||||
VALUE imemo;
|
VALUE imemo;
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -12573,8 +12573,6 @@ new_args(struct parser_params *p, NODE *pre_args, NODE *opt_args, ID rest_arg, N
|
||||||
|
|
||||||
args->opt_args = opt_args;
|
args->opt_args = opt_args;
|
||||||
|
|
||||||
args->ruby2_keywords = 0;
|
|
||||||
|
|
||||||
p->ruby_sourceline = saved_line;
|
p->ruby_sourceline = saved_line;
|
||||||
nd_set_loc(tail, loc);
|
nd_set_loc(tail, loc);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue