diff --git a/src/libs/registry/searchquery.cpp b/src/libs/registry/searchquery.cpp index 43d4320..99cb4e4 100644 --- a/src/libs/registry/searchquery.cpp +++ b/src/libs/registry/searchquery.cpp @@ -91,17 +91,6 @@ bool SearchQuery::hasKeywords() const return !m_keywords.isEmpty(); } -bool SearchQuery::hasKeyword(const QString &keyword) const -{ - // Temporary workaround for #333 - // TODO: Remove once #167 is implemented - for (const QString &kw : m_keywords) { - if (keyword.startsWith(kw, Qt::CaseInsensitive)) - return true; - } - return false; -} - bool SearchQuery::hasKeywords(const QStringList &keywords) const { for (const QString &keyword : keywords) { diff --git a/src/libs/registry/searchquery.h b/src/libs/registry/searchquery.h index 27fe9f2..4553a4c 100644 --- a/src/libs/registry/searchquery.h +++ b/src/libs/registry/searchquery.h @@ -66,8 +66,7 @@ public: /// Returns true if there's a docset filter for the given query bool hasKeywords() const; - /// Returns true if the docset prefix match the ones given on query - bool hasKeyword(const QString &keyword) const; + /// Returns true if one the query contains one of the @c keywords. bool hasKeywords(const QStringList &keywords) const; /// Returns the docset filter raw size for the given query