From 5810304c2edce3f9e889b4f55cf5c442a92d1a48 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 7 Oct 2023 10:46:08 +0900 Subject: Remove not used fields from asgn nodes --- parse.y | 5 ----- rubyparser.h | 6 ------ 2 files changed, 11 deletions(-) diff --git a/parse.y b/parse.y index 3d1804ea55..08f9e97786 100644 --- a/parse.y +++ b/parse.y @@ -11642,7 +11642,6 @@ rb_node_gasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT rb_node_gasgn_t *n = NODE_NEWNODE(NODE_GASGN, rb_node_gasgn_t, loc); n->nd_vid = nd_vid; n->nd_value = nd_value; - n->not_used = 0; return n; } @@ -11653,7 +11652,6 @@ rb_node_lasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT rb_node_lasgn_t *n = NODE_NEWNODE(NODE_LASGN, rb_node_lasgn_t, loc); n->nd_vid = nd_vid; n->nd_value = nd_value; - n->not_used = 0; return n; } @@ -11664,7 +11662,6 @@ rb_node_dasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT rb_node_dasgn_t *n = NODE_NEWNODE(NODE_DASGN, rb_node_dasgn_t, loc); n->nd_vid = nd_vid; n->nd_value = nd_value; - n->not_used = 0; return n; } @@ -11675,7 +11672,6 @@ rb_node_iasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT rb_node_iasgn_t *n = NODE_NEWNODE(NODE_IASGN, rb_node_iasgn_t, loc); n->nd_vid = nd_vid; n->nd_value = nd_value; - n->not_used = 0; return n; } @@ -11686,7 +11682,6 @@ rb_node_cvasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYL rb_node_cvasgn_t *n = NODE_NEWNODE(NODE_CVASGN, rb_node_cvasgn_t, loc); n->nd_vid = nd_vid; n->nd_value = nd_value; - n->not_used = 0; return n; } diff --git a/rubyparser.h b/rubyparser.h index f46d847dfd..96ec404528 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -354,13 +354,11 @@ typedef struct RNode_MASGN { struct RNode *nd_args; } rb_node_masgn_t; -/* RNode_LASGN, RNode_DASGN, RNode_IASGN, RNode_CVASGN and RNode_GASGN should be same structure */ typedef struct RNode_LASGN { NODE node; ID nd_vid; struct RNode *nd_value; - VALUE not_used; } rb_node_lasgn_t; typedef struct RNode_DASGN { @@ -368,7 +366,6 @@ typedef struct RNode_DASGN { ID nd_vid; struct RNode *nd_value; - VALUE not_used; } rb_node_dasgn_t; typedef struct RNode_GASGN { @@ -376,7 +373,6 @@ typedef struct RNode_GASGN { ID nd_vid; struct RNode *nd_value; - VALUE not_used; } rb_node_gasgn_t; typedef struct RNode_IASGN { @@ -384,7 +380,6 @@ typedef struct RNode_IASGN { ID nd_vid; struct RNode *nd_value; - VALUE not_used; } rb_node_iasgn_t; typedef struct RNode_CDECL { @@ -400,7 +395,6 @@ typedef struct RNode_CVASGN { ID nd_vid; struct RNode *nd_value; - VALUE not_used; } rb_node_cvasgn_t; typedef struct RNode_OP_ASGN1 { -- cgit v1.2.3