Remove a simidgeon of dead code.
This commit is contained in:
parent
cc2a514cdc
commit
fe0925678c
1 changed files with 1 additions and 8 deletions
|
@ -1600,14 +1600,8 @@ fn parse_block(&parser p) -> ast::block {
|
||||||
expect(p, token::LBRACE);
|
expect(p, token::LBRACE);
|
||||||
while (p.peek() != token::RBRACE) {
|
while (p.peek() != token::RBRACE) {
|
||||||
alt (p.peek()) {
|
alt (p.peek()) {
|
||||||
case (token::RBRACE) {
|
|
||||||
// empty; fall through to next iteration
|
|
||||||
|
|
||||||
}
|
|
||||||
case (token::SEMI) {
|
case (token::SEMI) {
|
||||||
p.bump();
|
p.bump(); // empty
|
||||||
// empty
|
|
||||||
|
|
||||||
}
|
}
|
||||||
case (_) {
|
case (_) {
|
||||||
auto stmt = parse_stmt(p);
|
auto stmt = parse_stmt(p);
|
||||||
|
@ -1630,7 +1624,6 @@ fn parse_block(&parser p) -> ast::block {
|
||||||
}
|
}
|
||||||
case (none) {
|
case (none) {
|
||||||
// Not an expression statement.
|
// Not an expression statement.
|
||||||
|
|
||||||
stmts += [stmt];
|
stmts += [stmt];
|
||||||
|
|
||||||
if (p.get_file_type() == SOURCE_FILE
|
if (p.get_file_type() == SOURCE_FILE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue