diff options
author | yui-knk <[email protected]> | 2023-09-27 18:58:01 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2023-09-29 11:43:04 +0900 |
commit | b9bf419aa36e438760fda4109561358bb20d09f1 (patch) | |
tree | c568e5d3b9169faf7caa52c3eac02e413856635d | |
parent | 52f8b347a0cc0d0529d5ddaf3094631e8fd914f2 (diff) |
Remove not used fields from ALIAS, VALIAS, UNDEF
-rw-r--r-- | parse.y | 4 | ||||
-rw-r--r-- | rubyparser.h | 4 |
2 files changed, 0 insertions, 8 deletions
@@ -11992,7 +11992,6 @@ rb_node_alias_new(struct parser_params *p, NODE *nd_1st, NODE *nd_2nd, const YYL rb_node_alias_t *n = NODE_NEWNODE(NODE_ALIAS, rb_node_alias_t, loc); n->nd_1st = nd_1st; n->nd_2nd = nd_2nd; - n->not_used = 0; return n; } @@ -12003,7 +12002,6 @@ rb_node_valias_new(struct parser_params *p, ID nd_alias, ID nd_orig, const YYLTY rb_node_valias_t *n = NODE_NEWNODE(NODE_VALIAS, rb_node_valias_t, loc); n->nd_alias = nd_alias; n->nd_orig = nd_orig; - n->not_used = 0; return n; } @@ -12012,9 +12010,7 @@ static rb_node_undef_t * rb_node_undef_new(struct parser_params *p, NODE *nd_undef, const YYLTYPE *loc) { rb_node_undef_t *n = NODE_NEWNODE(NODE_UNDEF, rb_node_undef_t, loc); - n->not_used = 0; n->nd_undef = nd_undef; - n->not_used2 = 0; return n; } diff --git a/rubyparser.h b/rubyparser.h index 1f138975a3..9a6780dc46 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -855,7 +855,6 @@ typedef struct RNode_ALIAS { struct RNode *nd_1st; struct RNode *nd_2nd; - VALUE not_used; } rb_node_alias_t; typedef struct RNode_VALIAS { @@ -863,15 +862,12 @@ typedef struct RNode_VALIAS { ID nd_alias; ID nd_orig; - VALUE not_used; } rb_node_valias_t; typedef struct RNode_UNDEF { NODE node; - VALUE not_used; struct RNode *nd_undef; - VALUE not_used2; } rb_node_undef_t; typedef struct RNode_CLASS { |