commit bb2669c3dd3c79c18f5ebb9bf307abc176d7bc73
parent 010c13e381ae264918bde2e4056c83cddcaa0534
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 19 Aug 2018 22:44:30 -0400
remove unused ThreadTask::start
Diffstat:
2 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/thread.cpp b/src/thread.cpp
@@ -60,13 +60,6 @@ void ThreadTask::setState(const State state)
}
}
-void ThreadTask::start()
-{
- WorkerThread *thread = new WorkerThread;
- thread->push(this);
- onFinish([thread] { delete thread; });
-}
-
void ThreadTask::onFinish(const VoidSignal::slot_type &slot)
{
// The task has a slot deleting itself at this point, accepting
diff --git a/src/thread.hpp b/src/thread.hpp
@@ -47,7 +47,6 @@ public:
virtual bool concurrent() const = 0;
- void start(); // start a new thread
void exec(); // runs in the current thread
const std::string &summary() const { return m_summary; }
void setState(State);