diff options
author | yui-knk <spiketeika@gmail.com> | 2023-10-07 10:46:08 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-10-07 17:54:35 +0900 |
commit | 5810304c2edce3f9e889b4f55cf5c442a92d1a48 (patch) | |
tree | 53d4dba4cc540328e33a381525249a92f3503c77 | |
parent | 529a651f82855956b6bd54794d629f91964e9de9 (diff) | |
download | ruby-5810304c2edce3f9e889b4f55cf5c442a92d1a48.tar.gz |
Remove not used fields from asgn nodes
-rw-r--r-- | parse.y | 5 | ||||
-rw-r--r-- | rubyparser.h | 6 |
2 files changed, 0 insertions, 11 deletions
@@ -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 { |