mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: remove unused Plasma::AbstractRunner::bigLock() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
67f0a70c9d
commit
e2cc778bf2
2 changed files with 0 additions and 21 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue