mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: remove unused Plasma::RunnerContext methods arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
97cfe669fc
commit
ac5d407fd5
2 changed files with 4 additions and 9 deletions
|
@ -340,10 +340,8 @@ bool RunnerContext::isValid() const
|
|||
return valid;
|
||||
}
|
||||
|
||||
bool RunnerContext::addMatches(const QString &term, const QList<QueryMatch> &matches)
|
||||
bool RunnerContext::addMatches(const QList<QueryMatch> &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<QueryMatch> &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;
|
||||
|
|
|
@ -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<QueryMatch> &matches);
|
||||
bool addMatches(const QList<QueryMatch> &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.
|
||||
|
|
Loading…
Add table
Reference in a new issue