aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 05:13:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 05:13:57 +0000
commit0f737abb88c4ca86e7943641157a304a5aefb30c (patch)
treea377fb9283b87d975bae5a28c0743ae80ce695c0
parentecaaca300900d539a4d084ac93ee15ca2060bc2e (diff)
downloadruby-0f737abb88c4ca86e7943641157a304a5aefb30c.tar.gz
remove NODE_DREGX_ONCE
* node.h (enum node_type): remove NODE_DREGX_ONCE which is not used anymore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/objspace/objspace.c1
-rw-r--r--node.c6
-rw-r--r--node.h2
3 files changed, 0 insertions, 9 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index c3d8cbc1a4..91f2d4e7b2 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -433,7 +433,6 @@ count_nodes(int argc, VALUE *argv, VALUE os)
COUNT_NODE(NODE_DXSTR);
COUNT_NODE(NODE_EVSTR);
COUNT_NODE(NODE_DREGX);
- COUNT_NODE(NODE_DREGX_ONCE);
COUNT_NODE(NODE_ARGS);
COUNT_NODE(NODE_ARGS_AUX);
COUNT_NODE(NODE_OPT_ARG);
diff --git a/node.c b/node.c
index 6783f05000..5987c5384f 100644
--- a/node.c
+++ b/node.c
@@ -714,11 +714,6 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
ANN("format: [nd_lit]");
ANN("example: /foo#{ bar }baz/");
goto dlit;
- case NODE_DREGX_ONCE:
- ANN("regexp literal with interpolation and once flag");
- ANN("format: [nd_lit]");
- ANN("example: /foo#{ bar }baz/o");
- goto dlit;
case NODE_DSYM:
ANN("symbol literal with interpolation");
ANN("format: [nd_lit]");
@@ -1111,7 +1106,6 @@ rb_gc_mark_node(NODE *obj)
case NODE_DSTR:
case NODE_DXSTR:
case NODE_DREGX:
- case NODE_DREGX_ONCE:
case NODE_ENSURE:
case NODE_CALL:
case NODE_DEFS:
diff --git a/node.h b/node.h
index 53661aacb9..33c4a77396 100644
--- a/node.h
+++ b/node.h
@@ -150,8 +150,6 @@ enum node_type {
#define NODE_EVSTR NODE_EVSTR
NODE_DREGX,
#define NODE_DREGX NODE_DREGX
- NODE_DREGX_ONCE,
-#define NODE_DREGX_ONCE NODE_DREGX_ONCE
NODE_ARGS,
#define NODE_ARGS NODE_ARGS
NODE_ARGS_AUX,