Remove not used fields from ALIAS, VALIAS, UNDEF
This commit is contained in:
parent
52f8b347a0
commit
b9bf419aa3
4
parse.y
4
parse.y
@ -11992,7 +11992,6 @@ rb_node_alias_new(struct parser_params *p, NODE *nd_1st, NODE *nd_2nd, const YYL
|
||||
rb_node_alias_t *n = NODE_NEWNODE(NODE_ALIAS, rb_node_alias_t, loc);
|
||||
n->nd_1st = nd_1st;
|
||||
n->nd_2nd = nd_2nd;
|
||||
n->not_used = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
@ -12003,7 +12002,6 @@ rb_node_valias_new(struct parser_params *p, ID nd_alias, ID nd_orig, const YYLTY
|
||||
rb_node_valias_t *n = NODE_NEWNODE(NODE_VALIAS, rb_node_valias_t, loc);
|
||||
n->nd_alias = nd_alias;
|
||||
n->nd_orig = nd_orig;
|
||||
n->not_used = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
@ -12012,9 +12010,7 @@ static rb_node_undef_t *
|
||||
rb_node_undef_new(struct parser_params *p, NODE *nd_undef, const YYLTYPE *loc)
|
||||
{
|
||||
rb_node_undef_t *n = NODE_NEWNODE(NODE_UNDEF, rb_node_undef_t, loc);
|
||||
n->not_used = 0;
|
||||
n->nd_undef = nd_undef;
|
||||
n->not_used2 = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
@ -855,7 +855,6 @@ typedef struct RNode_ALIAS {
|
||||
|
||||
struct RNode *nd_1st;
|
||||
struct RNode *nd_2nd;
|
||||
VALUE not_used;
|
||||
} rb_node_alias_t;
|
||||
|
||||
typedef struct RNode_VALIAS {
|
||||
@ -863,15 +862,12 @@ typedef struct RNode_VALIAS {
|
||||
|
||||
ID nd_alias;
|
||||
ID nd_orig;
|
||||
VALUE not_used;
|
||||
} rb_node_valias_t;
|
||||
|
||||
typedef struct RNode_UNDEF {
|
||||
NODE node;
|
||||
|
||||
VALUE not_used;
|
||||
struct RNode *nd_undef;
|
||||
VALUE not_used2;
|
||||
} rb_node_undef_t;
|
||||
|
||||
typedef struct RNode_CLASS {
|
||||
|
Loading…
x
Reference in New Issue
Block a user