Remove not used fields from NTH_REF, BACK_REF

This commit is contained in:
yui-knk 2023-09-27 19:03:27 +09:00 committed by Yuichiro Kaneko
parent 0a386b827b
commit 83af0b9128
2 changed files with 0 additions and 8 deletions

View File

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

View File

@ -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 */