From a472fd55dafcd1e3846615f0029431305b0f9c74 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 4 Oct 2023 22:16:49 +0900 Subject: [PATCH] Remove not used fields from colon nodes --- parse.y | 3 --- rubyparser.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/parse.y b/parse.y index 15d0efe257..6a224e2a14 100644 --- a/parse.y +++ b/parse.y @@ -11399,7 +11399,6 @@ rb_node_colon2_new(struct parser_params *p, NODE *nd_head, ID nd_mid, const YYLT rb_node_colon2_t *n = NODE_NEWNODE(NODE_COLON2, rb_node_colon2_t, loc); n->nd_head = nd_head; n->nd_mid = nd_mid; - n->not_used = 0; return n; } @@ -11408,9 +11407,7 @@ static rb_node_colon3_t * rb_node_colon3_new(struct parser_params *p, ID nd_mid, const YYLTYPE *loc) { rb_node_colon3_t *n = NODE_NEWNODE(NODE_COLON3, rb_node_colon3_t, loc); - n->not_used = 0; n->nd_mid = nd_mid; - n->not_used2 = 0; return n; } diff --git a/rubyparser.h b/rubyparser.h index 0258528ed9..377d6d5be0 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -826,15 +826,12 @@ typedef struct RNode_COLON2 { struct RNode *nd_head; ID nd_mid; - VALUE not_used; } rb_node_colon2_t; typedef struct RNode_COLON3 { NODE node; - VALUE not_used; ID nd_mid; - VALUE not_used2; } rb_node_colon3_t; /* RNode_DOT2, RNode_DOT3, RNode_FLIP2 and RNode_FLIP3 should be same structure */