Remove not used fields from SELF, NIL, TRUE, FALSE
This commit is contained in:
parent
ef13a49a7f
commit
23bcdda377
11
parse.y
11
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_new(struct parser_params *p, const YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
rb_node_self_t *n = NODE_NEWNODE(NODE_SELF, rb_node_self_t, 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;
|
n->nd_state = 1;
|
||||||
|
|
||||||
return n;
|
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_new(struct parser_params *p, const YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
rb_node_nil_t *n = NODE_NEWNODE(NODE_NIL, rb_node_nil_t, 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;
|
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_new(struct parser_params *p, const YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
rb_node_true_t *n = NODE_NEWNODE(NODE_TRUE, rb_node_true_t, 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;
|
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_new(struct parser_params *p, const YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
rb_node_false_t *n = NODE_NEWNODE(NODE_FALSE, rb_node_false_t, 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;
|
return n;
|
||||||
}
|
}
|
||||||
|
14
rubyparser.h
14
rubyparser.h
@ -956,33 +956,19 @@ typedef struct RNode_FLIP3 {
|
|||||||
typedef struct RNode_SELF {
|
typedef struct RNode_SELF {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
VALUE not_used2;
|
|
||||||
long nd_state; /* Default 1. See NEW_SELF. */
|
long nd_state; /* Default 1. See NEW_SELF. */
|
||||||
} rb_node_self_t;
|
} rb_node_self_t;
|
||||||
|
|
||||||
typedef struct RNode_NIL {
|
typedef struct RNode_NIL {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
VALUE not_used2;
|
|
||||||
VALUE not_used3;
|
|
||||||
} rb_node_nil_t;
|
} rb_node_nil_t;
|
||||||
|
|
||||||
typedef struct RNode_TRUE {
|
typedef struct RNode_TRUE {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
VALUE not_used2;
|
|
||||||
VALUE not_used3;
|
|
||||||
} rb_node_true_t;
|
} rb_node_true_t;
|
||||||
|
|
||||||
typedef struct RNode_FALSE {
|
typedef struct RNode_FALSE {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
VALUE not_used2;
|
|
||||||
VALUE not_used3;
|
|
||||||
} rb_node_false_t;
|
} rb_node_false_t;
|
||||||
|
|
||||||
typedef struct RNode_ERRINFO {
|
typedef struct RNode_ERRINFO {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user