aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-24 08:00:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-24 08:00:36 +0000
commit07b0b0735fe021dc3fc0b36edbd0f0da32be35bd (patch)
tree784c12f649b1e56aba2f399210414fd74ef894f1 /node.c
parentaaa9aa9e4bd61b81e4013725f4ba9c1fab333a9c (diff)
downloadruby-07b0b0735fe021dc3fc0b36edbd0f0da32be35bd.tar.gz
Removed NODE_OPT_N
* node.h (NODE_OPT_N): removed. * parse.y (parser_append_options): expand -n option loop to while gets loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/node.c b/node.c
index d0288beead..f6011d585d 100644
--- a/node.c
+++ b/node.c
@@ -230,11 +230,6 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
F_NODE(nd_next, "next when clause");
return;
- case NODE_OPT_N:
- ANN("wrapper for -n option");
- ANN("format: ruby -ne '[nd_body]' (nd_cond is `gets')");
- ANN("example: ruby -ne 'p $_'");
- goto loop;
case NODE_WHILE:
ANN("while statement");
ANN("format: while [nd_cond]; [nd_body]; end");
@@ -1152,7 +1147,6 @@ rb_gc_mark_node(NODE *obj)
case NODE_IASGN:
case NODE_CVASGN:
case NODE_COLON3:
- case NODE_OPT_N:
case NODE_EVSTR:
case NODE_UNDEF:
case NODE_POSTEXE: