diff options
author | yui-knk <spiketeika@gmail.com> | 2023-09-27 19:13:08 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-09-29 17:31:34 +0900 |
commit | 5537a410594dfe54eeb86ec63e8860b63160f8ef (patch) | |
tree | 6693b3313a5b6dfef59c7371557e90eaa8659051 | |
parent | f14cee39b867e416b974856171b52f725cb4892a (diff) | |
download | ruby-5537a410594dfe54eeb86ec63e8860b63160f8ef.tar.gz |
Remove not used fields from CASE, CASE2, CASE3
-rw-r--r-- | parse.y | 3 | ||||
-rw-r--r-- | rubyparser.h | 3 |
2 files changed, 0 insertions, 6 deletions
@@ -11302,7 +11302,6 @@ rb_node_case_new(struct parser_params *p, NODE *nd_head, NODE *nd_body, const YY rb_node_case_t *n = NODE_NEWNODE(NODE_CASE, rb_node_case_t, loc); n->nd_head = nd_head; n->nd_body = nd_body; - n->not_used = 0; return n; } @@ -11313,7 +11312,6 @@ rb_node_case2_new(struct parser_params *p, NODE *nd_body, const YYLTYPE *loc) rb_node_case2_t *n = NODE_NEWNODE(NODE_CASE2, rb_node_case2_t, loc); n->nd_head = 0; n->nd_body = nd_body; - n->not_used = 0; return n; } @@ -11324,7 +11322,6 @@ rb_node_case3_new(struct parser_params *p, NODE *nd_head, NODE *nd_body, const Y rb_node_case3_t *n = NODE_NEWNODE(NODE_CASE3, rb_node_case3_t, loc); n->nd_head = nd_head; n->nd_body = nd_body; - n->not_used = 0; return n; } diff --git a/rubyparser.h b/rubyparser.h index 9a6780dc46..6103f8505d 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -209,7 +209,6 @@ typedef struct RNode_CASE { struct RNode *nd_head; struct RNode *nd_body; - VALUE not_used; } rb_node_case_t; typedef struct RNode_CASE2 { @@ -217,7 +216,6 @@ typedef struct RNode_CASE2 { struct RNode *nd_head; struct RNode *nd_body; - VALUE not_used; } rb_node_case2_t; typedef struct RNode_CASE3 { @@ -225,7 +223,6 @@ typedef struct RNode_CASE3 { struct RNode *nd_head; struct RNode *nd_body; - VALUE not_used; } rb_node_case3_t; typedef struct RNode_WHEN { |