From e2cc778bf2113615e2c09f364e4e7f3542f3254c Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 3 Jun 2023 00:35:48 +0300 Subject: [PATCH] plasma: remove unused Plasma::AbstractRunner::bigLock() method Signed-off-by: Ivailo Monev --- plasma/abstractrunner.cpp | 7 ------- plasma/abstractrunner.h | 14 -------------- 2 files changed, 21 deletions(-) diff --git a/plasma/abstractrunner.cpp b/plasma/abstractrunner.cpp index bd458cf6..be0a3afa 100644 --- a/plasma/abstractrunner.cpp +++ b/plasma/abstractrunner.cpp @@ -41,8 +41,6 @@ namespace Plasma { -K_GLOBAL_STATIC(QMutex, s_bigLock) - AbstractRunner::AbstractRunner(const KService::Ptr service, QObject *parent) : QObject(parent), d(new AbstractRunnerPrivate(this)) @@ -245,11 +243,6 @@ KService::List AbstractRunner::serviceQuery(const QString &serviceType, const QS return KServiceTypeTrader::self()->query(serviceType, constraint); } -QMutex* AbstractRunner::bigLock() -{ - return s_bigLock; -} - void AbstractRunner::run(const Plasma::RunnerContext &search, const Plasma::QueryMatch &action) { Q_UNUSED(search) diff --git a/plasma/abstractrunner.h b/plasma/abstractrunner.h index b0928174..880b9802 100644 --- a/plasma/abstractrunner.h +++ b/plasma/abstractrunner.h @@ -227,20 +227,6 @@ class PLASMA_EXPORT AbstractRunner : public QObject */ QList syntaxes() const; - /** - * Access to a shared lock that all runners (and code that manages/interacts with them) - * can share to protect access to non-thread-safe shared code or data. - * Access of KSycoca records, for instance, is one place this lock should be used. - * - * Common usage: - * - * { - * QMutexLocker lock(bigLock()); - * .. do something that isn't thread safe .. - * } - */ - static QMutex *bigLock(); - /** * @return the default syntax for the runner or 0 if no default syntax has been defined *