FutureScheduler: drop moveToThread, setParent might silently fail

pull/2/head
xiphon 5 years ago
parent c6c094bbd5
commit 13ea4035b5

@ -32,12 +32,6 @@ private:
QFutureWatcher<T> *newWatcher()
{
QFutureWatcher<T> *watcher = new QFutureWatcher<T>();
QThread *schedulerThread = this->thread();
if (watcher->thread() != schedulerThread)
{
watcher->moveToThread(schedulerThread);
}
watcher->setParent(this);
return watcher;
}