diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-01-28 00:58:25 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-01-28 11:11:13 +0900 |
commit | 0f98d284f338d7480e1849399e38a9f8689e4957 (patch) | |
tree | cd535a1b8174ab4617c0c731c9b296170da292e3 /parse.y | |
parent | e256d44f984cc80039b7dd0db44a7107214548f1 (diff) |
Remove unused `nd_resq` from `RNode_ENSURE`
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -11666,7 +11666,6 @@ rb_node_ensure_new(struct parser_params *p, NODE *nd_head, NODE *nd_ensr, const { rb_node_ensure_t *n = NODE_NEWNODE(NODE_ENSURE, rb_node_ensure_t, loc); n->nd_head = nd_head; - n->nd_resq = 0; n->nd_ensr = nd_ensr; return n; @@ -14531,7 +14530,7 @@ reduce_nodes(struct parser_params *p, NODE **body) if (!subnodes(RNODE_WHEN, nd_body, nd_next)) goto end; break; case NODE_ENSURE: - if (!subnodes(RNODE_ENSURE, nd_head, nd_resq)) goto end; + body = &RNODE_ENSURE(node)->nd_head; break; case NODE_RESCUE: newline = 0; // RESBODY should not be a NEWLINE |