diff options
author | yui-knk <spiketeika@gmail.com> | 2023-10-01 13:19:55 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-10-02 09:41:45 +0900 |
commit | 81668579ed0cf90b95f2fcc5755b51842fb65917 (patch) | |
tree | b3a468b02ca8d9aa1a5952e41f3e8e54f77d8944 | |
parent | b1131851e085a4d1e5b56599adea1b851be97563 (diff) | |
download | ruby-81668579ed0cf90b95f2fcc5755b51842fb65917.tar.gz |
Remove not used fields from call nodes
-rw-r--r-- | parse.y | 8 | ||||
-rw-r--r-- | rubyparser.h | 10 |
2 files changed, 0 insertions, 18 deletions
@@ -11472,8 +11472,6 @@ static rb_node_super_t * rb_node_super_new(struct parser_params *p, NODE *nd_args, const YYLTYPE *loc) { rb_node_super_t *n = NODE_NEWNODE(NODE_SUPER, rb_node_super_t, loc); - n->not_used = 0; - n->not_used2 = 0; n->nd_args = nd_args; return n; @@ -11483,9 +11481,6 @@ static rb_node_zsuper_t * rb_node_zsuper_new(struct parser_params *p, const YYLTYPE *loc) { rb_node_zsuper_t *n = NODE_NEWNODE(NODE_ZSUPER, rb_node_zsuper_t, loc); - n->not_used = 0; - n->not_used2 = 0; - n->not_used3 = 0; return n; } @@ -11860,7 +11855,6 @@ static rb_node_fcall_t * rb_node_fcall_new(struct parser_params *p, ID nd_mid, NODE *nd_args, const YYLTYPE *loc) { rb_node_fcall_t *n = NODE_NEWNODE(NODE_FCALL, rb_node_fcall_t, loc); - n->not_used = 0; n->nd_mid = nd_mid; n->nd_args = nd_args; @@ -11882,9 +11876,7 @@ static rb_node_vcall_t * rb_node_vcall_new(struct parser_params *p, ID nd_mid, const YYLTYPE *loc) { rb_node_vcall_t *n = NODE_NEWNODE(NODE_VCALL, rb_node_vcall_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 0712d7a40e..44ab4eaa50 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -453,7 +453,6 @@ typedef struct RNode_OP_CDECL { ID nd_aid; } rb_node_op_cdecl_t; -/* RNode_CALL, RNode_OPCALL and RNode_QCALL should be same structure */ typedef struct RNode_CALL { NODE node; @@ -473,7 +472,6 @@ typedef struct RNode_OPCALL { typedef struct RNode_FCALL { NODE node; - VALUE not_used; ID nd_mid; struct RNode *nd_args; } rb_node_fcall_t; @@ -481,9 +479,7 @@ typedef struct RNode_FCALL { typedef struct RNode_VCALL { NODE node; - VALUE not_used; ID nd_mid; - VALUE not_used2; } rb_node_vcall_t; typedef struct RNode_QCALL { @@ -497,17 +493,11 @@ typedef struct RNode_QCALL { typedef struct RNode_SUPER { NODE node; - VALUE not_used; - VALUE not_used2; struct RNode *nd_args; } rb_node_super_t; typedef struct RNode_ZSUPER { NODE node; - - VALUE not_used; - VALUE not_used2; - VALUE not_used3; } rb_node_zsuper_t; /* |