diff --git a/compile.c b/compile.c index c047408b15..fb99826413 100644 --- a/compile.c +++ b/compile.c @@ -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); - body->param.flags.ruby2_keywords = args->ruby2_keywords; body->param.lead_num = arg_size = (int)args->pre_args_num; if (body->param.lead_num > 0) body->param.flags.has_lead = TRUE; debugs(" - argc: %d\n", body->param.lead_num); diff --git a/node.h b/node.h index befb1328fb..885d55b7a1 100644 --- a/node.h +++ b/node.h @@ -462,7 +462,6 @@ struct rb_args_info { NODE *opt_args; unsigned int no_kwarg: 1; - unsigned int ruby2_keywords: 1; unsigned int forwarding: 1; VALUE imemo; diff --git a/parse.y b/parse.y index 4b9c19e469..c76fefcf6c 100644 --- a/parse.y +++ b/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->ruby2_keywords = 0; - p->ruby_sourceline = saved_line; nd_set_loc(tail, loc);