From f28e254d67ee319f39b88cb1b4a18915cfc5dc7a Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 13 Oct 2020 15:58:44 +0200 Subject: 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 Reviewed-by: Fabian Kosmale --- tools/qmllint/findwarnings.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tools/qmllint') 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); -- cgit v1.2.3