plasma: remove dead code from runners implementation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-04-09 17:12:57 +00:00
parent d0f78e9325
commit 01be7e289b
4 changed files with 1 additions and 26 deletions

View file

@ -36,19 +36,16 @@ FindMatchesJob::FindMatchesJob(Plasma::AbstractRunner *runner,
Plasma::RunnerContext *context)
: QRunnable(),
m_context(*context, 0),
m_runner(runner),
m_finished(false)
m_runner(runner)
{
}
void FindMatchesJob::run()
{
m_finished = false;
// kDebug() << "Running match for " << m_runner->objectName();
if (m_context.isValid()) {
m_runner->performMatch(m_context);
}
m_finished = true;
}
Plasma::AbstractRunner* FindMatchesJob::runner() const
@ -56,11 +53,4 @@ Plasma::AbstractRunner* FindMatchesJob::runner() const
return m_runner;
}
bool FindMatchesJob::isFinished()
{
return m_finished;
}
} // Plasma namespace
#include "moc_runnerjobs_p.cpp"

View file

@ -41,7 +41,6 @@ public:
Plasma::RunnerContext *context);
Plasma::AbstractRunner* runner() const;
bool isFinished();
protected:
void run();
@ -49,7 +48,6 @@ protected:
private:
Plasma::RunnerContext m_context;
Plasma::AbstractRunner *m_runner;
bool m_finished;
};
}

View file

@ -263,18 +263,6 @@ public:
return runner;
}
void jobDone()
{
if (searchJobs.isEmpty() && context.matches().isEmpty()) {
// we finished our run, and there are no valid matches, and so no
// signal will have been sent out. so we need to emit the signal
// ourselves here
emit q->matchesChanged(context.matches());
}
checkTearDown();
}
void checkTearDown()
{
//kDebug() << prepped << teardownRequested << searchJobs.count();

View file

@ -288,7 +288,6 @@ class PLASMA_EXPORT RunnerManager : public QObject
private:
Q_PRIVATE_SLOT(d, void scheduleMatchesChanged())
Q_PRIVATE_SLOT(d, void matchesChanged())
Q_PRIVATE_SLOT(d, void jobDone())
Q_PRIVATE_SLOT(d, void runnerMatchingSuspended(bool))
RunnerManagerPrivate * const d;