diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-04 15:55:23 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-21 13:30:41 +0000 |
commit | a12da297946b5a6e767b972bc635a3308683b2e5 (patch) | |
tree | b90df2ee20e2ce9a4214ce9c7ba1c81eb2bdc691 /src/qml/compiler/qv4compilerscanfunctions.cpp | |
parent | 77c22af561f49bc6a78010564d33fc86eb831519 (diff) |
Remove some dead code
maxNumberOfArguments isn't used anymore.
Change-Id: Ibb891101b971b4b0b01be7897e6d1490e1dde62c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
-rw-r--r-- | src/qml/compiler/qv4compilerscanfunctions.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions.cpp b/src/qml/compiler/qv4compilerscanfunctions.cpp index e371280b55..639728df52 100644 --- a/src/qml/compiler/qv4compilerscanfunctions.cpp +++ b/src/qml/compiler/qv4compilerscanfunctions.cpp @@ -160,31 +160,6 @@ bool ScanFunctions::visit(CallExpression *ast) } } } - int argc = 0; - for (ArgumentList *it = ast->arguments; it; it = it->next) - ++argc; - _context->maxNumberOfArguments = qMax(_context->maxNumberOfArguments, argc); - return true; -} - -bool ScanFunctions::visit(NewMemberExpression *ast) -{ - int argc = 0; - for (ArgumentList *it = ast->arguments; it; it = it->next) - ++argc; - _context->maxNumberOfArguments = qMax(_context->maxNumberOfArguments, argc); - return true; -} - -bool ScanFunctions::visit(ArrayPattern *ast) -{ - int index = 0; - for (PatternElementList *it = ast->elements; it; it = it->next) { - for (Elision *elision = it->elision; elision; elision = elision->next) - ++index; - ++index; - } - _context->maxNumberOfArguments = qMax(_context->maxNumberOfArguments, index); return true; } |