aboutsummaryrefslogtreecommitdiffstats
path: root/tools/shared
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-09-30 15:03:04 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-02 15:33:17 +0200
commit65b6365ffbde369894f7af1ed735ea34a584d357 (patch)
treeae0fa55acb927ab0b148faa2bc3cf0367e79176e /tools/shared
parent7957752447fbd2581521b13156ef29ffc80ad7bf (diff)
qmllint: Remove ScopeTree::m_unmatchedSignalHandlers
Rather, immediately output the warnings when we encounter them. Change-Id: I4bd1a5491a47cb0232bfdd4e325f8f122593aa39 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/shared')
-rw-r--r--tools/shared/scopetree.cpp6
-rw-r--r--tools/shared/scopetree.h8
2 files changed, 0 insertions, 14 deletions
diff --git a/tools/shared/scopetree.cpp b/tools/shared/scopetree.cpp
index 933f3f88d7..223dfb92b8 100644
--- a/tools/shared/scopetree.cpp
+++ b/tools/shared/scopetree.cpp
@@ -71,12 +71,6 @@ void ScopeTree::insertPropertyIdentifier(const MetaProperty &property)
addMethod(method);
}
-void ScopeTree::addUnmatchedSignalHandler(const QString &handler,
- const QQmlJS::SourceLocation &location)
-{
- m_unmatchedSignalHandlers.append(qMakePair(handler, location));
-}
-
bool ScopeTree::isIdInCurrentScope(const QString &id) const
{
return isIdInCurrentQMlScopes(id) || isIdInCurrentJSScopes(id);
diff --git a/tools/shared/scopetree.h b/tools/shared/scopetree.h
index b751815172..57a346d0d9 100644
--- a/tools/shared/scopetree.h
+++ b/tools/shared/scopetree.h
@@ -127,8 +127,6 @@ public:
// inserts property as qml identifier as well as the corresponding
void insertPropertyIdentifier(const MetaProperty &prop);
- void addUnmatchedSignalHandler(const QString &handler,
- const QQmlJS::SourceLocation &location);
bool isIdInCurrentScope(const QString &id) const;
void addIdToAccessed(const QString &id, const QQmlJS::SourceLocation &location);
@@ -189,11 +187,6 @@ public:
QQmlJS::SourceLocation m_location;
};
- QVector<QPair<QString, QQmlJS::SourceLocation>> unmatchedSignalHandlers() const
- {
- return m_unmatchedSignalHandlers;
- }
-
QVector<QVector<FieldMember>> memberAccessChains() const
{
return m_memberAccessChains;
@@ -222,7 +215,6 @@ private:
QHash<QString, MetaEnum> m_enums;
QVector<QVector<FieldMember>> m_memberAccessChains;
- QVector<QPair<QString, QQmlJS::SourceLocation>> m_unmatchedSignalHandlers;
QVector<ScopeTree::Ptr> m_childScopes;
ScopeTree::WeakPtr m_parentScope;