summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-28 00:23:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-28 00:23:57 +0000
commitb6630a375d9c79de6b7ec0d684f7053292be0df5 (patch)
tree63fd2bad5570020fc992ab0f0c2abad8e7234751 /parse.y
parentc7d9ba96cb2d848d3931a2075378daa17b3d62a2 (diff)
* parse.y (primary): remove meaningless else-only case statement
syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y16
1 files changed, 0 insertions, 16 deletions
diff --git a/parse.y b/parse.y
index c098fd82b3..9089adff36 100644
--- a/parse.y
+++ b/parse.y
@@ -2602,14 +2602,6 @@ primary : literal
$$ = dispatch2(case, $2, $4);
%*/
}
- | keyword_case expr_value opt_terms keyword_else compstmt keyword_end
- {
- /*%%%*/
- $$ = block_append($2, $5);
- /*%
- $$ = dispatch2(case, $2, dispatch1(else, $5));
- %*/
- }
| keyword_case opt_terms case_body keyword_end
{
/*%%%*/
@@ -2618,14 +2610,6 @@ primary : literal
$$ = dispatch2(case, Qnil, $3);
%*/
}
- | keyword_case opt_terms keyword_else compstmt keyword_end
- {
- /*%%%*/
- $$ = $4;
- /*%
- $$ = dispatch2(case, Qnil, dispatch1(else, $4));
- %*/
- }
| keyword_for for_var keyword_in {COND_PUSH(1);} expr_value do {COND_POP();}
compstmt
keyword_end