Remove not used fields from asgn nodes

This commit is contained in:
yui-knk 2023-10-07 10:46:08 +09:00 committed by Yuichiro Kaneko
parent 529a651f82
commit 5810304c2e
2 changed files with 0 additions and 11 deletions

View File

@ -11642,7 +11642,6 @@ rb_node_gasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT
rb_node_gasgn_t *n = NODE_NEWNODE(NODE_GASGN, rb_node_gasgn_t, loc);
n->nd_vid = nd_vid;
n->nd_value = nd_value;
n->not_used = 0;
return n;
}
@ -11653,7 +11652,6 @@ rb_node_lasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT
rb_node_lasgn_t *n = NODE_NEWNODE(NODE_LASGN, rb_node_lasgn_t, loc);
n->nd_vid = nd_vid;
n->nd_value = nd_value;
n->not_used = 0;
return n;
}
@ -11664,7 +11662,6 @@ rb_node_dasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT
rb_node_dasgn_t *n = NODE_NEWNODE(NODE_DASGN, rb_node_dasgn_t, loc);
n->nd_vid = nd_vid;
n->nd_value = nd_value;
n->not_used = 0;
return n;
}
@ -11675,7 +11672,6 @@ rb_node_iasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYLT
rb_node_iasgn_t *n = NODE_NEWNODE(NODE_IASGN, rb_node_iasgn_t, loc);
n->nd_vid = nd_vid;
n->nd_value = nd_value;
n->not_used = 0;
return n;
}
@ -11686,7 +11682,6 @@ rb_node_cvasgn_new(struct parser_params *p, ID nd_vid, NODE *nd_value, const YYL
rb_node_cvasgn_t *n = NODE_NEWNODE(NODE_CVASGN, rb_node_cvasgn_t, loc);
n->nd_vid = nd_vid;
n->nd_value = nd_value;
n->not_used = 0;
return n;
}

View File

@ -354,13 +354,11 @@ typedef struct RNode_MASGN {
struct RNode *nd_args;
} rb_node_masgn_t;
/* RNode_LASGN, RNode_DASGN, RNode_IASGN, RNode_CVASGN and RNode_GASGN should be same structure */
typedef struct RNode_LASGN {
NODE node;
ID nd_vid;
struct RNode *nd_value;
VALUE not_used;
} rb_node_lasgn_t;
typedef struct RNode_DASGN {
@ -368,7 +366,6 @@ typedef struct RNode_DASGN {
ID nd_vid;
struct RNode *nd_value;
VALUE not_used;
} rb_node_dasgn_t;
typedef struct RNode_GASGN {
@ -376,7 +373,6 @@ typedef struct RNode_GASGN {
ID nd_vid;
struct RNode *nd_value;
VALUE not_used;
} rb_node_gasgn_t;
typedef struct RNode_IASGN {
@ -384,7 +380,6 @@ typedef struct RNode_IASGN {
ID nd_vid;
struct RNode *nd_value;
VALUE not_used;
} rb_node_iasgn_t;
typedef struct RNode_CDECL {
@ -400,7 +395,6 @@ typedef struct RNode_CVASGN {
ID nd_vid;
struct RNode *nd_value;
VALUE not_used;
} rb_node_cvasgn_t;
typedef struct RNode_OP_ASGN1 {