Remove not used fields from call nodes
This commit is contained in:
parent
b1131851e0
commit
81668579ed
8
parse.y
8
parse.y
@ -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_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);
|
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;
|
n->nd_args = nd_args;
|
||||||
|
|
||||||
return n;
|
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_new(struct parser_params *p, const YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
rb_node_zsuper_t *n = NODE_NEWNODE(NODE_ZSUPER, rb_node_zsuper_t, 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;
|
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_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);
|
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_mid = nd_mid;
|
||||||
n->nd_args = nd_args;
|
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_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);
|
rb_node_vcall_t *n = NODE_NEWNODE(NODE_VCALL, rb_node_vcall_t, loc);
|
||||||
n->not_used = 0;
|
|
||||||
n->nd_mid = nd_mid;
|
n->nd_mid = nd_mid;
|
||||||
n->not_used2 = 0;
|
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
10
rubyparser.h
10
rubyparser.h
@ -453,7 +453,6 @@ typedef struct RNode_OP_CDECL {
|
|||||||
ID nd_aid;
|
ID nd_aid;
|
||||||
} rb_node_op_cdecl_t;
|
} rb_node_op_cdecl_t;
|
||||||
|
|
||||||
/* RNode_CALL, RNode_OPCALL and RNode_QCALL should be same structure */
|
|
||||||
typedef struct RNode_CALL {
|
typedef struct RNode_CALL {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
@ -473,7 +472,6 @@ typedef struct RNode_OPCALL {
|
|||||||
typedef struct RNode_FCALL {
|
typedef struct RNode_FCALL {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
ID nd_mid;
|
ID nd_mid;
|
||||||
struct RNode *nd_args;
|
struct RNode *nd_args;
|
||||||
} rb_node_fcall_t;
|
} rb_node_fcall_t;
|
||||||
@ -481,9 +479,7 @@ typedef struct RNode_FCALL {
|
|||||||
typedef struct RNode_VCALL {
|
typedef struct RNode_VCALL {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
ID nd_mid;
|
ID nd_mid;
|
||||||
VALUE not_used2;
|
|
||||||
} rb_node_vcall_t;
|
} rb_node_vcall_t;
|
||||||
|
|
||||||
typedef struct RNode_QCALL {
|
typedef struct RNode_QCALL {
|
||||||
@ -497,17 +493,11 @@ typedef struct RNode_QCALL {
|
|||||||
typedef struct RNode_SUPER {
|
typedef struct RNode_SUPER {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
VALUE not_used2;
|
|
||||||
struct RNode *nd_args;
|
struct RNode *nd_args;
|
||||||
} rb_node_super_t;
|
} rb_node_super_t;
|
||||||
|
|
||||||
typedef struct RNode_ZSUPER {
|
typedef struct RNode_ZSUPER {
|
||||||
NODE node;
|
NODE node;
|
||||||
|
|
||||||
VALUE not_used;
|
|
||||||
VALUE not_used2;
|
|
||||||
VALUE not_used3;
|
|
||||||
} rb_node_zsuper_t;
|
} rb_node_zsuper_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user