From 1f470c4de6e3f38f62f0e0132e5335201828df28 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sat, 14 Nov 2020 21:33:00 +0100 Subject: [PATCH] Remove check for defunct RunnerContext::Type The concept is deprecated and the value is nowhere inside of KRunner set. --- runners/locations/locationrunner.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/runners/locations/locationrunner.cpp b/runners/locations/locationrunner.cpp index d003069ad..6d0ffafc8 100644 --- a/runners/locations/locationrunner.cpp +++ b/runners/locations/locationrunner.cpp @@ -76,16 +76,6 @@ void LocationsRunner::match(Plasma::RunnerContext &context) match.setId(QStringLiteral("openfile")); } context.addMatch(match); - } else if (type == Plasma::RunnerContext::Help) { - //qDebug() << "Locations matching because of" << type; - Plasma::QueryMatch match(this); - match.setType(Plasma::QueryMatch::ExactMatch); - match.setText(i18n("Open %1", term)); - match.setIconName(QStringLiteral("system-help")); - match.setRelevance(1); - match.setType(Plasma::QueryMatch::ExactMatch); - match.setId(QStringLiteral("help")); - context.addMatch(match); } else if (type == Plasma::RunnerContext::NetworkLocation || type == Plasma::RunnerContext::UnknownType) { const bool filtered = KUriFilter::self()->filterUri(term, QStringList() << QStringLiteral("kshorturifilter"));