aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-09-27 21:32:00 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-09-30 10:27:39 +0900
commitef37bdeb4d6d70beba4fb6862064855472d3d157 (patch)
treed5eef7ba3463edd8520059445a843276eb785633
parent443099377f8cdde96a22bf2291a7373a683e3790 (diff)
downloadruby-ef37bdeb4d6d70beba4fb6862064855472d3d157.tar.gz
Remove not used fields from AND, OR
-rw-r--r--parse.y2
-rw-r--r--rubyparser.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 721885e8f5..39b35efd67 100644
--- a/parse.y
+++ b/parse.y
@@ -11172,7 +11172,6 @@ rb_node_and_new(struct parser_params *p, NODE *nd_1st, NODE *nd_2nd, const YYLTY
rb_node_and_t *n = NODE_NEWNODE(NODE_AND, rb_node_and_t, loc);
n->nd_1st = nd_1st;
n->nd_2nd = nd_2nd;
- n->not_used = 0;
return n;
}
@@ -11183,7 +11182,6 @@ rb_node_or_new(struct parser_params *p, NODE *nd_1st, NODE *nd_2nd, const YYLTYP
rb_node_or_t *n = NODE_NEWNODE(NODE_OR, rb_node_or_t, loc);
n->nd_1st = nd_1st;
n->nd_2nd = nd_2nd;
- n->not_used = 0;
return n;
}
diff --git a/rubyparser.h b/rubyparser.h
index 825687bd83..d698a67e15 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -353,7 +353,6 @@ typedef struct RNode_AND {
struct RNode *nd_1st;
struct RNode *nd_2nd;
- VALUE not_used;
} rb_node_and_t;
typedef struct RNode_OR {
@@ -361,7 +360,6 @@ typedef struct RNode_OR {
struct RNode *nd_1st;
struct RNode *nd_2nd;
- VALUE not_used;
} rb_node_or_t;
typedef struct RNode_MASGN {