aboutsummaryrefslogtreecommitdiffstats
path: root/tools/shared
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-09-30 10:50:11 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-02 15:32:58 +0200
commit85dd91f27b16fabe04575bd3b01bccc44b43d43f (patch)
treee133900cf84a4f4c03d027c800edd18341b18e22 /tools/shared
parent5296c163acb520706177807c2a12c30177046fab (diff)
qmllint: Remove ScopeTree::isVisualRootScope()
This is not a property of the ScopeTree itself, but rather a property of how qmllint sets up its scopes. Change-Id: Ifb7c0f1f841046a6ae68e246fbd706f67bedb2af Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/shared')
-rw-r--r--tools/shared/scopetree.cpp12
-rw-r--r--tools/shared/scopetree.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/tools/shared/scopetree.cpp b/tools/shared/scopetree.cpp
index 73db8684ab..f55fd7d845 100644
--- a/tools/shared/scopetree.cpp
+++ b/tools/shared/scopetree.cpp
@@ -101,18 +101,6 @@ void ScopeTree::accessMember(const QString &name, const QString &parentType,
m_memberAccessChains.last().append(FieldMember {name, parentType, location });
}
-bool ScopeTree::isVisualRootScope() const
-{
- if (!m_parentScope)
- return false;
-
- const auto grandParent = parentScope()->m_parentScope.toStrongRef();
- if (!grandParent)
- return false;
-
- return grandParent->m_parentScope == nullptr;
-}
-
bool ScopeTree::isIdInCurrentQMlScopes(const QString &id) const
{
if (m_scopeType == ScopeType::QMLScope)
diff --git a/tools/shared/scopetree.h b/tools/shared/scopetree.h
index 2b44a61c8b..d87422224c 100644
--- a/tools/shared/scopetree.h
+++ b/tools/shared/scopetree.h
@@ -128,8 +128,6 @@ public:
void accessMember(const QString &name, const QString &parentType,
const QQmlJS::SourceLocation &location);
- bool isVisualRootScope() const;
-
ScopeType scopeType() const { return m_scopeType; }
void addMethods(const QMultiHash<QString, MetaMethod> &methods) { m_methods.unite(methods); }