Remove unused nd_resq from RNode_ENSURE

This commit is contained in:
Nobuyoshi Nakada 2024-01-28 00:58:25 +09:00
parent e256d44f98
commit 0f98d284f3
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
2 changed files with 1 additions and 3 deletions

View File

@ -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); rb_node_ensure_t *n = NODE_NEWNODE(NODE_ENSURE, rb_node_ensure_t, loc);
n->nd_head = nd_head; n->nd_head = nd_head;
n->nd_resq = 0;
n->nd_ensr = nd_ensr; n->nd_ensr = nd_ensr;
return n; return n;
@ -14531,7 +14530,7 @@ reduce_nodes(struct parser_params *p, NODE **body)
if (!subnodes(RNODE_WHEN, nd_body, nd_next)) goto end; if (!subnodes(RNODE_WHEN, nd_body, nd_next)) goto end;
break; break;
case NODE_ENSURE: case NODE_ENSURE:
if (!subnodes(RNODE_ENSURE, nd_head, nd_resq)) goto end; body = &RNODE_ENSURE(node)->nd_head;
break; break;
case NODE_RESCUE: case NODE_RESCUE:
newline = 0; // RESBODY should not be a NEWLINE newline = 0; // RESBODY should not be a NEWLINE

View File

@ -346,7 +346,6 @@ typedef struct RNode_ENSURE {
NODE node; NODE node;
struct RNode *nd_head; struct RNode *nd_head;
struct RNode *nd_resq; /* Maybe not used other than reduce_nodes */
struct RNode *nd_ensr; struct RNode *nd_ensr;
} rb_node_ensure_t; } rb_node_ensure_t;