ruby-changes:48193
From: yui-knk <ko1@a...>
Date: Sun, 22 Oct 2017 01:09:56 +0900 (JST)
Subject: [ruby-changes:48193] yui-knk:r60307 (trunk): Remove not used node_type NODE_CVDECL
yui-knk 2017-10-22 01:09:51 +0900 (Sun, 22 Oct 2017) New Revision: 60307 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60307 Log: Remove not used node_type NODE_CVDECL * compile.c (defined_expr0): This node_type has not been used since r11614. * ext/objspace/objspace.c (count_nodes): ditto * node.c (dump_node): ditto * node.h (node_type, NEW_CVDECL): ditto Modified files: trunk/compile.c trunk/ext/objspace/objspace.c trunk/node.c trunk/node.h Index: node.c =================================================================== --- node.c (revision 60306) +++ node.c (revision 60307) @@ -1034,7 +1034,6 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L1034 F_NODE(nd_body, "body"); return; - case NODE_CVDECL: case NODE_ARGS_AUX: case NODE_TO_ARY: case NODE_BLOCK_ARG: Index: node.h =================================================================== --- node.h (revision 60306) +++ node.h (revision 60307) @@ -78,8 +78,6 @@ enum node_type { https://github.com/ruby/ruby/blob/trunk/node.h#L78 #define NODE_CDECL NODE_CDECL NODE_CVASGN, #define NODE_CVASGN NODE_CVASGN - NODE_CVDECL, -#define NODE_CVDECL NODE_CVDECL NODE_OP_ASGN1, #define NODE_OP_ASGN1 NODE_OP_ASGN1 NODE_OP_ASGN2, @@ -391,7 +389,6 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L389 #define NEW_IASGN(v,val) NEW_NODE(NODE_IASGN,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) #define NEW_OP_ASGN1(p,id,a) NEW_NODE(NODE_OP_ASGN1,p,id,a) #define NEW_OP_ASGN2(r,t,i,o,val) NEW_NODE(NODE_OP_ASGN2,r,val,NEW_OP_ASGN22(i,o,t)) #define NEW_OP_ASGN22(i,o,t) NEW_NODE(NODE_OP_ASGN2,i,o,t) Index: compile.c =================================================================== --- compile.c (revision 60306) +++ compile.c (revision 60307) @@ -3893,7 +3893,6 @@ defined_expr0(rb_iseq_t *iseq, LINK_ANCH https://github.com/ruby/ruby/blob/trunk/compile.c#L3893 case NODE_GASGN: case NODE_IASGN: case NODE_CDECL: - case NODE_CVDECL: case NODE_CVASGN: expr_type = DEFINED_ASGN; break; Index: ext/objspace/objspace.c =================================================================== --- ext/objspace/objspace.c (revision 60306) +++ ext/objspace/objspace.c (revision 60307) @@ -399,7 +399,6 @@ count_nodes(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L399 COUNT_NODE(NODE_IASGN); COUNT_NODE(NODE_CDECL); COUNT_NODE(NODE_CVASGN); - COUNT_NODE(NODE_CVDECL); COUNT_NODE(NODE_OP_ASGN1); COUNT_NODE(NODE_OP_ASGN2); COUNT_NODE(NODE_OP_ASGN_AND); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/