Remove not used fields from MATCH3
This commit is contained in:
parent
6a0c13c1d6
commit
5c779dc45d
@ -9216,7 +9216,7 @@ compile_match(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, i
|
|||||||
ADD_SEQ(ret, val);
|
ADD_SEQ(ret, val);
|
||||||
ADD_SEND(ret, node, idEqTilde, INT2FIX(1));
|
ADD_SEND(ret, node, idEqTilde, INT2FIX(1));
|
||||||
|
|
||||||
if (RNODE_MATCH2(node)->nd_args) {
|
if (nd_type_p(node, NODE_MATCH2) && RNODE_MATCH2(node)->nd_args) {
|
||||||
compile_named_capture_assign(iseq, ret, RNODE_MATCH2(node)->nd_args);
|
compile_named_capture_assign(iseq, ret, RNODE_MATCH2(node)->nd_args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
parse.y
1
parse.y
@ -11504,7 +11504,6 @@ rb_node_match3_new(struct parser_params *p, NODE *nd_recv, NODE *nd_value, const
|
|||||||
rb_node_match3_t *n = NODE_NEWNODE(NODE_MATCH3, rb_node_match3_t, loc);
|
rb_node_match3_t *n = NODE_NEWNODE(NODE_MATCH3, rb_node_match3_t, loc);
|
||||||
n->nd_recv = nd_recv;
|
n->nd_recv = nd_recv;
|
||||||
n->nd_value = nd_value;
|
n->nd_value = nd_value;
|
||||||
n->not_used = 0;
|
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
@ -614,7 +614,6 @@ typedef struct RNode_MATCH3 {
|
|||||||
|
|
||||||
struct RNode *nd_recv;
|
struct RNode *nd_recv;
|
||||||
struct RNode *nd_value;
|
struct RNode *nd_value;
|
||||||
VALUE not_used;
|
|
||||||
} rb_node_match3_t;
|
} rb_node_match3_t;
|
||||||
|
|
||||||
typedef struct RNode_LIT {
|
typedef struct RNode_LIT {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user