From e203a868470ab2e435111127f00530f4d8cc581d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 10 May 2018 22:25:46 +0200 Subject: Unify AST for the different 'for' statements Change-Id: I70ca83b0ce933d64dad4984a236e48592e989742 Reviewed-by: Simon Hausmann --- src/qml/compiler/qv4compilerscanfunctions.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp') diff --git a/src/qml/compiler/qv4compilerscanfunctions.cpp b/src/qml/compiler/qv4compilerscanfunctions.cpp index ccf7e49e25..31663e2162 100644 --- a/src/qml/compiler/qv4compilerscanfunctions.cpp +++ b/src/qml/compiler/qv4compilerscanfunctions.cpp @@ -321,16 +321,6 @@ bool ScanFunctions::visit(DoWhileStatement *ast) { bool ScanFunctions::visit(ForStatement *ast) { Node::accept(ast->initialiser, this); - Node::accept(ast->condition, this); - Node::accept(ast->expression, this); - - TemporaryBoolAssignment allowFuncDecls(_allowFuncDecls, !_context->isStrict); - Node::accept(ast->statement, this); - - return false; -} - -bool ScanFunctions::visit(LocalForStatement *ast) { Node::accept(ast->declarations, this); Node::accept(ast->condition, this); Node::accept(ast->expression, this); -- cgit v1.2.3