Remove not used fields from NTH_REF, BACK_REF
This commit is contained in:
parent
0a386b827b
commit
83af0b9128
4
parse.y
4
parse.y
@ -11713,9 +11713,7 @@ static rb_node_nth_ref_t *
|
||||
rb_node_nth_ref_new(struct parser_params *p, long nd_nth, const YYLTYPE *loc)
|
||||
{
|
||||
rb_node_nth_ref_t *n = NODE_NEWNODE(NODE_NTH_REF, rb_node_nth_ref_t, loc);
|
||||
n->not_used = 0;
|
||||
n->nd_nth = nd_nth;
|
||||
n->not_used2 = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
@ -11724,9 +11722,7 @@ static rb_node_back_ref_t *
|
||||
rb_node_back_ref_new(struct parser_params *p, long nd_nth, const YYLTYPE *loc)
|
||||
{
|
||||
rb_node_back_ref_t *n = NODE_NEWNODE(NODE_BACK_REF, rb_node_back_ref_t, loc);
|
||||
n->not_used = 0;
|
||||
n->nd_nth = nd_nth;
|
||||
n->not_used2 = 0;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
@ -634,17 +634,13 @@ typedef struct RNode_CVAR {
|
||||
typedef struct RNode_NTH_REF {
|
||||
NODE node;
|
||||
|
||||
VALUE not_used;
|
||||
long nd_nth;
|
||||
VALUE not_used2;
|
||||
} rb_node_nth_ref_t;
|
||||
|
||||
typedef struct RNode_BACK_REF {
|
||||
NODE node;
|
||||
|
||||
VALUE not_used;
|
||||
long nd_nth;
|
||||
VALUE not_used2;
|
||||
} rb_node_back_ref_t;
|
||||
|
||||
/* RNode_MATCH, RNode_LIT, RNode_STR and RNode_XSTR should be same structure */
|
||||
|
Loading…
x
Reference in New Issue
Block a user