summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 16:09:51 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 16:09:51 +0000
commitd98db55b736bbd59cbcb64e5d6a4e429508f985c (patch)
treea6d18807cfffe45aa9ebc9cdb5080a1b7182d81e
parent111a2de495b1767f53e3632dee2ab55569dcb4f5 (diff)
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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--compile.c1
-rw-r--r--ext/objspace/objspace.c1
-rw-r--r--node.c1
-rw-r--r--node.h3
4 files changed, 0 insertions, 6 deletions
diff --git a/compile.c b/compile.c
index 18d9b20..48d36c6 100644
--- a/compile.c
+++ b/compile.c
@@ -3893,7 +3893,6 @@ defined_expr0(rb_iseq_t *iseq, LINK_ANCHOR *const ret,
case NODE_GASGN:
case NODE_IASGN:
case NODE_CDECL:
- case NODE_CVDECL:
case NODE_CVASGN:
expr_type = DEFINED_ASGN;
break;
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 2627574..e5e3766 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -399,7 +399,6 @@ count_nodes(int argc, VALUE *argv, VALUE os)
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);
diff --git a/node.c b/node.c
index 82bb596..b574d94 100644
--- a/node.c
+++ b/node.c
@@ -1034,7 +1034,6 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
F_NODE(nd_body, "body");
return;
- case NODE_CVDECL:
case NODE_ARGS_AUX:
case NODE_TO_ARY:
case NODE_BLOCK_ARG:
diff --git a/node.h b/node.h
index 4762a57..ef7bb9e 100644
--- a/node.h
+++ b/node.h
@@ -78,8 +78,6 @@ enum node_type {
#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 {
#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)