diff --git a/plasma/runnercontext.cpp b/plasma/runnercontext.cpp index 9b624cad..2d40733a 100644 --- a/plasma/runnercontext.cpp +++ b/plasma/runnercontext.cpp @@ -340,10 +340,8 @@ bool RunnerContext::isValid() const return valid; } -bool RunnerContext::addMatches(const QString &term, const QList &matches) +bool RunnerContext::addMatches(const QList &matches) { - Q_UNUSED(term) - if (matches.isEmpty() || !isValid()) { // bail out if the query is empty or the qptr is dirty return false; @@ -369,10 +367,8 @@ bool RunnerContext::addMatches(const QString &term, const QList &mat return true; } -bool RunnerContext::addMatch(const QString &term, const QueryMatch &match) +bool RunnerContext::addMatch(const QueryMatch &match) { - Q_UNUSED(term) - if (!isValid()) { // bail out if the qptr is dirty return false; diff --git a/plasma/runnercontext.h b/plasma/runnercontext.h index fe1f2d8b..c122ff8a 100644 --- a/plasma/runnercontext.h +++ b/plasma/runnercontext.h @@ -127,19 +127,18 @@ public: * * @return true if matches were added, false if matches were e.g. outdated */ - bool addMatches(const QString &term, const QList &matches); + bool addMatches(const QList &matches); /** * Appends a match to the existing list of matches. * * If you are going to be adding multiple matches, use addMatches instead. * - * @param term the search term that this match was generated for. * @param match the match to add * * @return true if the match was added, false otherwise. */ - bool addMatch(const QString &term, const QueryMatch &match); + bool addMatch(const QueryMatch &match); /** * Removes a match from the existing list of matches.