plasma: remove unused Plasma::AbstractRunner::bigLock() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-03 00:35:48 +03:00
parent 67f0a70c9d
commit e2cc778bf2
2 changed files with 0 additions and 21 deletions

View file

@ -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)

View file

@ -227,20 +227,6 @@ class PLASMA_EXPORT AbstractRunner : public QObject
*/
QList<RunnerSyntax> 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
*