Remove not used fields from ITER, FOR

This commit is contained in:
yui-knk 2023-09-27 21:06:47 +09:00 committed by Yuichiro Kaneko
parent 4c18615ffe
commit db18428fff
2 changed files with 0 additions and 4 deletions

View File

@ -11093,7 +11093,6 @@ static rb_node_for_t *
rb_node_for_new(struct parser_params *p, NODE *nd_iter, NODE *nd_body, const YYLTYPE *loc) rb_node_for_new(struct parser_params *p, NODE *nd_iter, NODE *nd_body, const YYLTYPE *loc)
{ {
rb_node_for_t *n = NODE_NEWNODE(NODE_FOR, rb_node_for_t, loc); rb_node_for_t *n = NODE_NEWNODE(NODE_FOR, rb_node_for_t, loc);
n->not_used = 0;
n->nd_body = nd_body; n->nd_body = nd_body;
n->nd_iter = nd_iter; n->nd_iter = nd_iter;
@ -11273,7 +11272,6 @@ rb_node_iter_new(struct parser_params *p, NODE *nd_args, NODE *nd_body, const YY
/* Keep the order of node creation */ /* Keep the order of node creation */
NODE *scope = NEW_SCOPE(nd_args, nd_body, loc); NODE *scope = NEW_SCOPE(nd_args, nd_body, loc);
rb_node_iter_t *n = NODE_NEWNODE(NODE_ITER, rb_node_iter_t, loc); rb_node_iter_t *n = NODE_NEWNODE(NODE_ITER, rb_node_iter_t, loc);
n->not_used = 0;
n->nd_body = scope; n->nd_body = scope;
n->nd_iter = 0; n->nd_iter = 0;

View File

@ -261,7 +261,6 @@ typedef struct RNode_UNTIL {
typedef struct RNode_ITER { typedef struct RNode_ITER {
NODE node; NODE node;
VALUE not_used;
struct RNode *nd_body; struct RNode *nd_body;
struct RNode *nd_iter; struct RNode *nd_iter;
} rb_node_iter_t; } rb_node_iter_t;
@ -269,7 +268,6 @@ typedef struct RNode_ITER {
typedef struct RNode_FOR { typedef struct RNode_FOR {
NODE node; NODE node;
VALUE not_used;
struct RNode *nd_body; struct RNode *nd_body;
struct RNode *nd_iter; struct RNode *nd_iter;
} rb_node_for_t; } rb_node_for_t;