aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-13 15:58:44 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-14 09:45:32 +0200
commitf28e254d67ee319f39b88cb1b4a18915cfc5dc7a (patch)
tree82e81cc5314c57fd619d33ed6dcc0610bf8f02d9 /tools/qmllint
parent8e8bb79c01f3613a67ed19ee1ec40745f170b880 (diff)
qmllint: Don't register the component we're just parsing as import
I can't think of a scenario where this actually makes sense and none of the autotests exercise it. Change-Id: I6361d38e02f1cdac60ee5a4e1b8287491c3b05e6 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint')
-rw-r--r--tools/qmllint/findwarnings.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp
index 019901507a..bcff23eba4 100644
--- a/tools/qmllint/findwarnings.cpp
+++ b/tools/qmllint/findwarnings.cpp
@@ -133,10 +133,6 @@ bool FindWarningVisitor::visit(QQmlJS::AST::UiProgram *)
m_rootScopeImports.insert(baseTypes);
}
- // add "self" (as we only ever check the first part of a qualified identifier, we get away with
- // using an empty QQmlJSScope
- m_rootScopeImports.insert(QFileInfo { m_filePath }.baseName(), {});
-
const auto imported = m_importer.importDirectory(QFileInfo(m_filePath).canonicalPath());
m_rootScopeImports.insert(imported);