summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-09-27 21:36:04 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-09-30 16:24:43 +0900
commit4c18615ffe2c267162db40f07588c48ea1328bb3 (patch)
tree013c8e2f546bdf3a4f0ef0367cecec06136776d1
parent4e90be4c93ff3cbb8ab2cce3264e21f769ee056e (diff)
Remove not used fields from MODULE, SCLASS
-rw-r--r--parse.y2
-rw-r--r--rubyparser.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index b8478adc07..a323ac830d 100644
--- a/parse.y
+++ b/parse.y
@@ -11251,7 +11251,6 @@ rb_node_sclass_new(struct parser_params *p, NODE *nd_recv, NODE *nd_body, const
rb_node_sclass_t *n = NODE_NEWNODE(NODE_SCLASS, rb_node_sclass_t, loc);
n->nd_recv = nd_recv;
n->nd_body = scope;
- n->not_used = 0;
return n;
}
@@ -11264,7 +11263,6 @@ rb_node_module_new(struct parser_params *p, NODE *nd_cpath, NODE *nd_body, const
rb_node_module_t *n = NODE_NEWNODE(NODE_MODULE, rb_node_module_t, loc);
n->nd_cpath = nd_cpath;
n->nd_body = scope;
- n->not_used = 0;
return n;
}
diff --git a/rubyparser.h b/rubyparser.h
index 7b36aacd0e..7ef7791727 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -845,7 +845,6 @@ typedef struct RNode_MODULE {
struct RNode *nd_cpath;
struct RNode *nd_body;
- VALUE not_used;
} rb_node_module_t;
typedef struct RNode_SCLASS {
@@ -853,7 +852,6 @@ typedef struct RNode_SCLASS {
struct RNode *nd_recv;
struct RNode *nd_body;
- VALUE not_used;
} rb_node_sclass_t;
typedef struct RNode_COLON2 {