Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 907948129aae320fc51f8349cca011c1b1a8d7c0..00e30bc138d8d75599a6da869433a8c44520a35d 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -1712,23 +1712,6 @@ Expression* Parser::RewriteDoExpression(Block* body, int pos, bool* ok) { |
return expr; |
} |
-Statement* Parser::ParseFunctionDeclaration(bool* ok) { |
- Consume(Token::FUNCTION); |
- int pos = position(); |
- ParseFunctionFlags flags = ParseFunctionFlags::kIsNormal; |
- if (Check(Token::MUL)) { |
- flags |= ParseFunctionFlags::kIsGenerator; |
- if (allow_harmony_restrictive_declarations()) { |
- ReportMessageAt(scanner()->location(), |
- MessageTemplate::kGeneratorInLegacyContext); |
- *ok = false; |
- return nullptr; |
- } |
- } |
- |
- return ParseHoistableDeclaration(pos, flags, nullptr, false, CHECK_OK); |
-} |
- |
Statement* Parser::RewriteSwitchStatement(Expression* tag, |
SwitchStatement* switch_statement, |
ZoneList<CaseClause*>* cases, |