Remove dead code

This commit is contained in:
Aleksey Kladov 2020-04-11 23:08:05 +02:00
parent fd06fe7b13
commit 6b49e774e2

View file

@ -282,13 +282,10 @@ fn name_ref(p: &mut Parser) {
}
fn name_ref_or_index(p: &mut Parser) {
if p.at(IDENT) || p.at(INT_NUMBER) {
let m = p.start();
p.bump_any();
m.complete(p, NAME_REF);
} else {
p.err_and_bump("expected identifier");
}
assert!(p.at(IDENT) || p.at(INT_NUMBER));
let m = p.start();
p.bump_any();
m.complete(p, NAME_REF);
}
fn error_block(p: &mut Parser, message: &str) {