Commit 6848ad6f authored by Masaki Muranaka's avatar Masaki Muranaka

Remove #if 0 ... #endif code.

parent e350e311
...@@ -952,11 +952,7 @@ static mrb_value ...@@ -952,11 +952,7 @@ static mrb_value
mrb_ary_inspect(mrb_state *mrb, mrb_value ary) mrb_ary_inspect(mrb_state *mrb, mrb_value ary)
{ {
if (RARRAY_LEN(ary) == 0) return mrb_str_new(mrb, "[]", 2); if (RARRAY_LEN(ary) == 0) return mrb_str_new(mrb, "[]", 2);
#if 0 /* THREAD */
return mrb_exec_recursive(inspect_ary_r, ary, 0);
#else
return inspect_ary(mrb, ary, mrb_ary_new(mrb)); return inspect_ary(mrb, ary, mrb_ary_new(mrb));
#endif
} }
static mrb_value static mrb_value
......
...@@ -395,15 +395,6 @@ new_fcall(parser_state *p, mrb_sym b, node *c) ...@@ -395,15 +395,6 @@ new_fcall(parser_state *p, mrb_sym b, node *c)
return list4((node*)NODE_FCALL, new_self(p), nsym(b), c); return list4((node*)NODE_FCALL, new_self(p), nsym(b), c);
} }
#if 0
// (:vcall self mid)
static node*
new_vcall(parser_state *p, mrb_sym b)
{
return list3((node*)NODE_VCALL, new_self(p), (node*)b);
}
#endif
// (:super . c) // (:super . c)
static node* static node*
new_super(parser_state *p, node *c) new_super(parser_state *p, node *c)
...@@ -1790,11 +1781,6 @@ arg : lhs '=' arg ...@@ -1790,11 +1781,6 @@ arg : lhs '=' arg
| arg tMATCH arg | arg tMATCH arg
{ {
$$ = call_bin_op(p, $1, "=~", $3); $$ = call_bin_op(p, $1, "=~", $3);
#if 0
if (nd_type($1) == NODE_LIT && TYPE($1->nd_lit) == T_REGEXP) {
$$ = reg_named_capture_assign($1->nd_lit, $$);
}
#endif
} }
| arg tNMATCH arg | arg tNMATCH arg
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment