Remove not used fields from SELF, NIL, TRUE, FALSE

This commit is contained in:
yui-knk 2023-09-27 18:28:01 +09:00 committed by Yuichiro Kaneko
parent ef13a49a7f
commit 23bcdda377
2 changed files with 0 additions and 25 deletions

11
parse.y
View File

@ -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;
}

View File

@ -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 {