aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-09-27 18:28:01 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-09-29 07:43:29 +0900
commit23bcdda37771bbc606535e0a6b0b428b5c26e847 (patch)
tree5915c787e627bef6286c7a8e5ba30c6efd7388bc
parentef13a49a7f4ed755584484f32aac5885b5aa1a0c (diff)
downloadruby-23bcdda37771bbc606535e0a6b0b428b5c26e847.tar.gz
Remove not used fields from SELF, NIL, TRUE, FALSE
-rw-r--r--parse.y11
-rw-r--r--rubyparser.h14
2 files changed, 0 insertions, 25 deletions
diff --git a/parse.y b/parse.y
index b572ab488a..cfd7502d40 100644
--- a/parse.y
+++ b/parse.y
@@ -11423,8 +11423,6 @@ static rb_node_self_t *
rb_node_self_new(struct parser_params *p, const YYLTYPE *loc)
{
rb_node_self_t *n = NODE_NEWNODE(NODE_SELF, rb_node_self_t, loc);
- n->not_used = 0;
- n->not_used2 = 0;
n->nd_state = 1;
return n;
@@ -11434,9 +11432,6 @@ static rb_node_nil_t *
rb_node_nil_new(struct parser_params *p, const YYLTYPE *loc)
{
rb_node_nil_t *n = NODE_NEWNODE(NODE_NIL, rb_node_nil_t, loc);
- n->not_used = 0;
- n->not_used2 = 0;
- n->not_used3 = 0;
return n;
}
@@ -11445,9 +11440,6 @@ static rb_node_true_t *
rb_node_true_new(struct parser_params *p, const YYLTYPE *loc)
{
rb_node_true_t *n = NODE_NEWNODE(NODE_TRUE, rb_node_true_t, loc);
- n->not_used = 0;
- n->not_used2 = 0;
- n->not_used3 = 0;
return n;
}
@@ -11456,9 +11448,6 @@ static rb_node_false_t *
rb_node_false_new(struct parser_params *p, const YYLTYPE *loc)
{
rb_node_false_t *n = NODE_NEWNODE(NODE_FALSE, rb_node_false_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 b43823a761..970965347c 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -956,33 +956,19 @@ typedef struct RNode_FLIP3 {
typedef struct RNode_SELF {
NODE node;
- VALUE not_used;
- VALUE not_used2;
long nd_state; /* Default 1. See NEW_SELF. */
} rb_node_self_t;
typedef struct RNode_NIL {
NODE node;
-
- VALUE not_used;
- VALUE not_used2;
- VALUE not_used3;
} rb_node_nil_t;
typedef struct RNode_TRUE {
NODE node;
-
- VALUE not_used;
- VALUE not_used2;
- VALUE not_used3;
} rb_node_true_t;
typedef struct RNode_FALSE {
NODE node;
-
- VALUE not_used;
- VALUE not_used2;
- VALUE not_used3;
} rb_node_false_t;
typedef struct RNode_ERRINFO {