diff options
-rw-r--r-- | compile.c | 2 | ||||
-rw-r--r-- | parse.y | 10 | ||||
-rw-r--r-- | rubyparser.h | 10 |
3 files changed, 0 insertions, 22 deletions
@@ -8271,8 +8271,6 @@ compile_builtin_mandatory_only_method(rb_iseq_t *iseq, const NODE *node, const N }; rb_node_args_t args_node; rb_node_init(RNODE(&args_node), NODE_ARGS); - args_node.not_used = 0; - args_node.not_used2 = 0; args_node.nd_ainfo = &args; // local table without non-mandatory parameters @@ -11881,8 +11881,6 @@ static rb_node_args_t * rb_node_args_new(struct parser_params *p, struct rb_args_info *nd_ainfo, const YYLTYPE *loc) { rb_node_args_t *n = NODE_NEWNODE(NODE_ARGS, rb_node_args_t, loc); - n->not_used = 0; - n->not_used2 = 0; n->nd_ainfo = nd_ainfo; return n; @@ -11903,7 +11901,6 @@ static rb_node_opt_arg_t * rb_node_opt_arg_new(struct parser_params *p, NODE *nd_body, const YYLTYPE *loc) { rb_node_opt_arg_t *n = NODE_NEWNODE(NODE_OPT_ARG, rb_node_opt_arg_t, loc); - n->not_used = 0; n->nd_body = nd_body; n->nd_next = 0; @@ -11914,7 +11911,6 @@ static rb_node_kw_arg_t * rb_node_kw_arg_new(struct parser_params *p, NODE *nd_body, const YYLTYPE *loc) { rb_node_kw_arg_t *n = NODE_NEWNODE(NODE_KW_ARG, rb_node_kw_arg_t, loc); - n->not_used = 0; n->nd_body = nd_body; n->nd_next = 0; @@ -11927,7 +11923,6 @@ rb_node_postarg_new(struct parser_params *p, NODE *nd_1st, NODE *nd_2nd, const Y rb_node_postarg_t *n = NODE_NEWNODE(NODE_POSTARG, rb_node_postarg_t, loc); n->nd_1st = nd_1st; n->nd_2nd = nd_2nd; - n->not_used = 0; return n; } @@ -11938,7 +11933,6 @@ rb_node_argscat_new(struct parser_params *p, NODE *nd_head, NODE *nd_body, const rb_node_argscat_t *n = NODE_NEWNODE(NODE_ARGSCAT, rb_node_argscat_t, loc); n->nd_head = nd_head; n->nd_body = nd_body; - n->not_used = 0; return n; } @@ -11949,7 +11943,6 @@ rb_node_argspush_new(struct parser_params *p, NODE *nd_head, NODE *nd_body, cons rb_node_argspush_t *n = NODE_NEWNODE(NODE_ARGSPUSH, rb_node_argspush_t, loc); n->nd_head = nd_head; n->nd_body = nd_body; - n->not_used = 0; return n; } @@ -11959,8 +11952,6 @@ rb_node_splat_new(struct parser_params *p, NODE *nd_head, const YYLTYPE *loc) { rb_node_splat_t *n = NODE_NEWNODE(NODE_SPLAT, rb_node_splat_t, loc); n->nd_head = nd_head; - n->not_used = 0; - n->not_used2 = 0; return n; } @@ -11971,7 +11962,6 @@ rb_node_block_pass_new(struct parser_params *p, NODE *nd_body, const YYLTYPE *lo rb_node_block_pass_t *n = NODE_NEWNODE(NODE_BLOCK_PASS, rb_node_block_pass_t, loc); n->nd_head = 0; n->nd_body = nd_body; - n->not_used = 0; return n; } diff --git a/rubyparser.h b/rubyparser.h index 296b272c32..24feaca8dd 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -739,8 +739,6 @@ typedef struct RNode_ONCE { typedef struct RNode_ARGS { NODE node; - VALUE not_used; - VALUE not_used2; struct rb_args_info *nd_ainfo; } rb_node_args_t; @@ -755,7 +753,6 @@ typedef struct RNode_ARGS_AUX { typedef struct RNode_OPT_ARG { NODE node; - VALUE not_used; struct RNode *nd_body; struct RNode *nd_next; } rb_node_opt_arg_t; @@ -763,7 +760,6 @@ typedef struct RNode_OPT_ARG { typedef struct RNode_KW_ARG { NODE node; - VALUE not_used; struct RNode *nd_body; struct RNode *nd_next; } rb_node_kw_arg_t; @@ -773,7 +769,6 @@ typedef struct RNode_POSTARG { struct RNode *nd_1st; struct RNode *nd_2nd; - VALUE not_used; } rb_node_postarg_t; typedef struct RNode_ARGSCAT { @@ -781,7 +776,6 @@ typedef struct RNode_ARGSCAT { struct RNode *nd_head; struct RNode *nd_body; - VALUE not_used; } rb_node_argscat_t; typedef struct RNode_ARGSPUSH { @@ -789,15 +783,12 @@ typedef struct RNode_ARGSPUSH { struct RNode *nd_head; struct RNode *nd_body; - VALUE not_used; } rb_node_argspush_t; typedef struct RNode_SPLAT { NODE node; struct RNode *nd_head; - VALUE not_used; - VALUE not_used2; } rb_node_splat_t; typedef struct RNode_BLOCK_PASS { @@ -805,7 +796,6 @@ typedef struct RNode_BLOCK_PASS { struct RNode *nd_head; struct RNode *nd_body; - VALUE not_used; } rb_node_block_pass_t; typedef struct RNode_DEFN { |