From 1fbccd02eeb37cf3ecd408b0ec2a71bdf78aa00f Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 30 Sep 2023 16:28:03 +0900 Subject: [PATCH] Remove not used fields from OP_ASGN_AND, OP_ASGN_OR --- parse.y | 2 -- rubyparser.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/parse.y b/parse.y index 17107d37ac..b1624d2213 100644 --- a/parse.y +++ b/parse.y @@ -11620,7 +11620,6 @@ rb_node_op_asgn_or_new(struct parser_params *p, NODE *nd_head, NODE *nd_value, c rb_node_op_asgn_or_t *n = NODE_NEWNODE(NODE_OP_ASGN_OR, rb_node_op_asgn_or_t, loc); n->nd_head = nd_head; n->nd_value = nd_value; - n->not_used = 0; return n; } @@ -11631,7 +11630,6 @@ rb_node_op_asgn_and_new(struct parser_params *p, NODE *nd_head, NODE *nd_value, rb_node_op_asgn_and_t *n = NODE_NEWNODE(NODE_OP_ASGN_AND, rb_node_op_asgn_and_t, loc); n->nd_head = nd_head; n->nd_value = nd_value; - n->not_used = 0; return n; } diff --git a/rubyparser.h b/rubyparser.h index a61fdf6b84..e760d841a2 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -438,7 +438,6 @@ typedef struct RNode_OP_ASGN_AND { struct RNode *nd_head; struct RNode *nd_value; - VALUE not_used; } rb_node_op_asgn_and_t; typedef struct RNode_OP_ASGN_OR { @@ -446,7 +445,6 @@ typedef struct RNode_OP_ASGN_OR { struct RNode *nd_head; struct RNode *nd_value; - VALUE not_used; } rb_node_op_asgn_or_t; typedef struct RNode_OP_CDECL {