ruby-changes:48219
From: yui-knk <ko1@a...>
Date: Sun, 22 Oct 2017 09:29:44 +0900 (JST)
Subject: [ruby-changes:48219] yui-knk:r60334 (trunk): Remove not used node_type NODE_BLOCK_ARG
yui-knk 2017-10-22 09:29:40 +0900 (Sun, 22 Oct 2017) New Revision: 60334 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60334 Log: Remove not used node_type NODE_BLOCK_ARG * ext/objspace/objspace.c (count_nodes): This node_type has not been used since r11840. * node.c (dump_node, rb_gc_mark_node): ditto * node.h (node_type, NEW_BLOCK_ARG): ditto Modified files: trunk/ext/objspace/objspace.c trunk/node.c trunk/node.h Index: ext/objspace/objspace.c =================================================================== --- ext/objspace/objspace.c (revision 60333) +++ ext/objspace/objspace.c (revision 60334) @@ -442,7 +442,6 @@ count_nodes(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L442 COUNT_NODE(NODE_ARGSCAT); COUNT_NODE(NODE_ARGSPUSH); COUNT_NODE(NODE_SPLAT); - COUNT_NODE(NODE_BLOCK_ARG); COUNT_NODE(NODE_BLOCK_PASS); COUNT_NODE(NODE_DEFN); COUNT_NODE(NODE_DEFS); Index: node.c =================================================================== --- node.c (revision 60333) +++ node.c (revision 60334) @@ -1035,7 +1035,6 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L1035 return; case NODE_ARGS_AUX: - case NODE_BLOCK_ARG: case NODE_BMETHOD: case NODE_LAST: break; @@ -1209,7 +1208,6 @@ rb_gc_mark_node(NODE *obj) https://github.com/ruby/ruby/blob/trunk/node.c#L1208 case NODE_TRUE: case NODE_FALSE: case NODE_ERRINFO: - case NODE_BLOCK_ARG: break; default: /* unlisted NODE */ Index: node.h =================================================================== --- node.h (revision 60333) +++ node.h (revision 60334) @@ -168,8 +168,6 @@ enum node_type { https://github.com/ruby/ruby/blob/trunk/node.h#L168 #define NODE_ARGSPUSH NODE_ARGSPUSH NODE_SPLAT, #define NODE_SPLAT NODE_SPLAT - NODE_BLOCK_ARG, -#define NODE_BLOCK_ARG NODE_BLOCK_ARG NODE_BLOCK_PASS, #define NODE_BLOCK_PASS NODE_BLOCK_PASS NODE_DEFN, @@ -424,7 +422,6 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L422 #define NEW_ARGSCAT(a,b) NEW_NODE(NODE_ARGSCAT,a,b,0) #define NEW_ARGSPUSH(a,b) NEW_NODE(NODE_ARGSPUSH,a,b,0) #define NEW_SPLAT(a) NEW_NODE(NODE_SPLAT,a,0,0) -#define NEW_BLOCK_ARG(v) NEW_NODE(NODE_BLOCK_ARG,v,0,local_cnt(v)) #define NEW_BLOCK_PASS(b) NEW_NODE(NODE_BLOCK_PASS,0,b,0) #define NEW_ALIAS(n,o) NEW_NODE(NODE_ALIAS,n,o,0) #define NEW_VALIAS(n,o) NEW_NODE(NODE_VALIAS,n,o,0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/