[前][次][番号順一覧][スレッド一覧]

ruby-changes:48221

From: yui-knk <ko1@a...>
Date: Sun, 22 Oct 2017 09:45:11 +0900 (JST)
Subject: [ruby-changes:48221] yui-knk:r60336 (trunk): Remove not used node_type NODE_BMETHOD

yui-knk	2017-10-22 09:45:05 +0900 (Sun, 22 Oct 2017)

  New Revision: 60336

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60336

  Log:
    Remove not used node_type NODE_BMETHOD
    
    * ext/objspace/objspace.c (count_nodes): This node_type has
      not been used since r24128.
    * node.c (dump_node): ditto
    * node.h (node_type, NEW_BMETHOD): ditto

  Modified files:
    trunk/ext/objspace/objspace.c
    trunk/node.c
    trunk/node.h
Index: ext/objspace/objspace.c
===================================================================
--- ext/objspace/objspace.c	(revision 60335)
+++ ext/objspace/objspace.c	(revision 60336)
@@ -464,7 +464,6 @@ count_nodes(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L464
 		COUNT_NODE(NODE_ERRINFO);
 		COUNT_NODE(NODE_DEFINED);
 		COUNT_NODE(NODE_POSTEXE);
-		COUNT_NODE(NODE_BMETHOD);
 		COUNT_NODE(NODE_DSYM);
 		COUNT_NODE(NODE_ATTRASGN);
 		COUNT_NODE(NODE_PRELUDE);
Index: node.c
===================================================================
--- node.c	(revision 60335)
+++ node.c	(revision 60336)
@@ -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_BMETHOD:
       case NODE_LAST:
 	break;
     }
Index: node.h
===================================================================
--- node.h	(revision 60335)
+++ node.h	(revision 60336)
@@ -212,8 +212,6 @@ enum node_type { https://github.com/ruby/ruby/blob/trunk/node.h#L212
 #define NODE_DEFINED     NODE_DEFINED
     NODE_POSTEXE,
 #define NODE_POSTEXE     NODE_POSTEXE
-    NODE_BMETHOD,
-#define NODE_BMETHOD     NODE_BMETHOD
     NODE_DSYM,
 #define NODE_DSYM        NODE_DSYM
     NODE_ATTRASGN,
@@ -441,7 +439,6 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L439
 #define NEW_DEFINED(e) NEW_NODE(NODE_DEFINED,e,0,0)
 #define NEW_PREEXE(b) NEW_SCOPE(b)
 #define NEW_POSTEXE(b) NEW_NODE(NODE_POSTEXE,0,b,0)
-#define NEW_BMETHOD(b) NEW_NODE(NODE_BMETHOD,0,0,b)
 #define NEW_ATTRASGN(r,m,a) NEW_NODE(NODE_ATTRASGN,r,m,a)
 #define NEW_PRELUDE(p,b,o) NEW_NODE(NODE_PRELUDE,p,b,o)
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]