Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
Since 140512d, `else` without
`rescue` has been a syntax error.
  • Loading branch information
nobu committed May 23, 2024
1 parent 1471a16 commit a99d79d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -14943,9 +14943,6 @@ new_bodystmt(struct parser_params *p, NODE *head, NODE *rescue, NODE *rescue_els
result = NEW_RESCUE(head, rescue, rescue_else, &rescue_loc);
nd_set_line(result, rescue->nd_loc.beg_pos.lineno);
}
else if (rescue_else) {
result = block_append(p, result, rescue_else);
}
if (ensure) {
result = NEW_ENSURE(result, ensure, loc);
}
Expand Down

0 comments on commit a99d79d

Please sign in to comment.