summaryrefslogtreecommitdiff
path: root/Libraries/LibJS
diff options
context:
space:
mode:
author0xtechnobabble <0xtechnobabble@protonmail.com>2020-03-13 23:30:21 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-14 13:58:30 +0100
commit0659d0724142666ac016598e1a544a160120d2b0 (patch)
tree360c8cafd967b331841f29d1f03c9577c69d8d98 /Libraries/LibJS
parentb5a22fc408aeeb532c11af0f68db5deba5c4cd38 (diff)
downloadserenity-0659d0724142666ac016598e1a544a160120d2b0.zip
LibJS/Parser: Remove superfluous switch case
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r--Libraries/LibJS/Parser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Libraries/LibJS/Parser.cpp b/Libraries/LibJS/Parser.cpp
index 64a9763d38..eea7b0ef92 100644
--- a/Libraries/LibJS/Parser.cpp
+++ b/Libraries/LibJS/Parser.cpp
@@ -425,9 +425,6 @@ NonnullOwnPtr<ForStatement> Parser::parse_for_statement()
OwnPtr<Statement> init = nullptr;
switch (m_current_token.type()) {
- case TokenType::Var:
- init = parse_variable_declaration();
- break;
case TokenType::Semicolon:
break;
default: