aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-10-05 17:49:41 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-06 07:31:22 +0900
commitf6a2af255b9ace4de5b10cb75788529dab9c42e9 (patch)
treeeaa804215b1dca1ba10c39e26cdc776a8f1be9af
parent8cb906d7067d9b4cdf7971e49f185c737f3ee1f9 (diff)
downloadruby-f6a2af255b9ace4de5b10cb75788529dab9c42e9.tar.gz
Remove not used fields from ZLIST
-rw-r--r--parse.y3
-rw-r--r--rubyparser.h4
2 files changed, 0 insertions, 7 deletions
diff --git a/parse.y b/parse.y
index 6110f801fc..9c15befa78 100644
--- a/parse.y
+++ b/parse.y
@@ -11538,9 +11538,6 @@ static rb_node_zlist_t *
rb_node_zlist_new(struct parser_params *p, const YYLTYPE *loc)
{
rb_node_zlist_t *n = NODE_NEWNODE(NODE_ZLIST, rb_node_zlist_t, loc);
- n->not_used = 0;
- n->not_used2 = 0;
- n->not_used3 = 0;
return n;
}
diff --git a/rubyparser.h b/rubyparser.h
index b36470bf69..f0ce7989e0 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -515,10 +515,6 @@ typedef struct RNode_LIST {
typedef struct RNode_ZLIST {
NODE node;
-
- VALUE not_used;
- VALUE not_used2; /* Used by p->exits */
- VALUE not_used3; /* Used by p->exits */
} rb_node_zlist_t;
typedef struct RNode_VALUES {