summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-01 09:05:19 +0200
committerLars Knoll <lars.knoll@qt.io>2018-08-01 20:51:05 +0000
commit145ff3118cf27455180bbcff2d37b24cf32276f7 (patch)
tree0264e5c203bcc150805476e8759237e17a68f7f8 /src/qml/compiler/qv4codegen.cpp
parent5f9c61ca9ff8921fe8a00e4cbf30ec8a4d5c6770 (diff)
downloadqtdeclarative-145ff3118cf27455180bbcff2d37b24cf32276f7.tar.gz
Simplify parsing of pragma directives
We only support 'pragma Singleton' currently, so there is no need to parse the right hand side of pragma as a member expression. Change-Id: Ic0dcbedb52cb58db2fd1cc099f14fd399b7162e3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index c81ea09cce..30a73d31bd 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -806,12 +806,6 @@ bool Codegen::visit(UiQualifiedId *)
return false;
}
-bool Codegen::visit(UiQualifiedPragmaId *)
-{
- Q_UNREACHABLE();
- return false;
-}
-
bool Codegen::visit(VariableDeclarationList *)
{
Q_UNREACHABLE();