Index: src/parsing/scanner.cc |
diff --git a/src/parsing/scanner.cc b/src/parsing/scanner.cc |
index 39e0d831e772cbfb07a83ffa0005b0364d006849..dd0a473d85afcac006f32ec0cb425325efd38b40 100644 |
--- a/src/parsing/scanner.cc |
+++ b/src/parsing/scanner.cc |
@@ -1340,19 +1340,6 @@ static Token::Value KeywordOrIdentifierToken(const uint8_t* input, |
} |
-bool Scanner::IdentifierIsFutureStrictReserved( |
- const AstRawString* string) const { |
- // Keywords are always 1-byte strings. |
- if (!string->is_one_byte()) return false; |
- if (string->IsOneByteEqualTo("let") || string->IsOneByteEqualTo("static") || |
- string->IsOneByteEqualTo("yield")) { |
- return true; |
- } |
- return Token::FUTURE_STRICT_RESERVED_WORD == |
- KeywordOrIdentifierToken(string->raw_data(), string->length()); |
-} |
- |
- |
Token::Value Scanner::ScanIdentifierOrKeyword() { |
DCHECK(unicode_cache_->IsIdentifierStart(c0_)); |
LiteralScope literal(this); |