mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove not used node_type NODE_IASGN2
* compile.c (compile_massign_opt, iseq_compile_each0): This node_type has not been used since r11813. * ext/objspace/objspace.c (count_nodes): ditto * node.c (dump_node, rb_gc_mark_node): ditto * node.h (node_type, NEW_IASGN2): ditto * parse.y (node_assign_gen): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dafb230c0b
commit
92746378ab
5 changed files with 1 additions and 10 deletions
|
@ -3557,7 +3557,6 @@ compile_massign_opt(rb_iseq_t *iseq, LINK_ANCHOR *const ret,
|
|||
case NODE_DASGN:
|
||||
case NODE_DASGN_CURR:
|
||||
case NODE_IASGN:
|
||||
case NODE_IASGN2:
|
||||
case NODE_CVASGN:
|
||||
MEMORY(ln->nd_vid);
|
||||
break;
|
||||
|
@ -5161,8 +5160,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, NODE *node, int popp
|
|||
((VALUE)node->nd_entry | 1));
|
||||
break;
|
||||
}
|
||||
case NODE_IASGN:
|
||||
case NODE_IASGN2:{
|
||||
case NODE_IASGN:{
|
||||
CHECK(COMPILE(ret, "lvalue", node->nd_value));
|
||||
if (!popped) {
|
||||
ADD_INSN(ret, line, dup);
|
||||
|
|
|
@ -397,7 +397,6 @@ count_nodes(int argc, VALUE *argv, VALUE os)
|
|||
COUNT_NODE(NODE_DASGN_CURR);
|
||||
COUNT_NODE(NODE_GASGN);
|
||||
COUNT_NODE(NODE_IASGN);
|
||||
COUNT_NODE(NODE_IASGN2);
|
||||
COUNT_NODE(NODE_CDECL);
|
||||
COUNT_NODE(NODE_CVASGN);
|
||||
COUNT_NODE(NODE_CVDECL);
|
||||
|
|
2
node.c
2
node.c
|
@ -1034,7 +1034,6 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||
F_NODE(nd_body, "body");
|
||||
return;
|
||||
|
||||
case NODE_IASGN2:
|
||||
case NODE_CVDECL:
|
||||
case NODE_ARGS_AUX:
|
||||
case NODE_TO_ARY:
|
||||
|
@ -1154,7 +1153,6 @@ rb_gc_mark_node(NODE *obj)
|
|||
case NODE_DASGN:
|
||||
case NODE_DASGN_CURR:
|
||||
case NODE_IASGN:
|
||||
case NODE_IASGN2:
|
||||
case NODE_CVASGN:
|
||||
case NODE_COLON3:
|
||||
case NODE_OPT_N:
|
||||
|
|
3
node.h
3
node.h
|
@ -74,8 +74,6 @@ enum node_type {
|
|||
#define NODE_GASGN NODE_GASGN
|
||||
NODE_IASGN,
|
||||
#define NODE_IASGN NODE_IASGN
|
||||
NODE_IASGN2,
|
||||
#define NODE_IASGN2 NODE_IASGN2
|
||||
NODE_CDECL,
|
||||
#define NODE_CDECL NODE_CDECL
|
||||
NODE_CVASGN,
|
||||
|
@ -391,7 +389,6 @@ typedef struct RNode {
|
|||
#define NEW_DASGN(v,val) NEW_NODE(NODE_DASGN,v,val,0)
|
||||
#define NEW_DASGN_CURR(v,val) NEW_NODE(NODE_DASGN_CURR,v,val,0)
|
||||
#define NEW_IASGN(v,val) NEW_NODE(NODE_IASGN,v,val,0)
|
||||
#define NEW_IASGN2(v,val) NEW_NODE(NODE_IASGN2,v,val,0)
|
||||
#define NEW_CDECL(v,val,path) NEW_NODE(NODE_CDECL,v,val,path)
|
||||
#define NEW_CVASGN(v,val) NEW_NODE(NODE_CVASGN,v,val,0)
|
||||
#define NEW_CVDECL(v,val) NEW_NODE(NODE_CVDECL,v,val,0)
|
||||
|
|
1
parse.y
1
parse.y
|
@ -9934,7 +9934,6 @@ node_assign_gen(struct parser_params *parser, NODE *lhs, NODE *rhs, int column)
|
|||
switch (nd_type(lhs)) {
|
||||
case NODE_GASGN:
|
||||
case NODE_IASGN:
|
||||
case NODE_IASGN2:
|
||||
case NODE_LASGN:
|
||||
case NODE_DASGN:
|
||||
case NODE_DASGN_CURR:
|
||||
|
|
Loading…
Reference in a new issue