diff options
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
-rw-r--r-- | src/corelib/thread/qfutureinterface.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/corelib/thread/qfutureinterface.cpp b/src/corelib/thread/qfutureinterface.cpp index 8cdc10a94b..a82b7af873 100644 --- a/src/corelib/thread/qfutureinterface.cpp +++ b/src/corelib/thread/qfutureinterface.cpp @@ -829,18 +829,6 @@ void QFutureInterfaceBase::setContinuation(std::function<void(const QFutureInter } } -void QFutureInterfaceBase::cleanContinuation() -{ - if (!d) - return; - - // This is called when the associated QPromise is being destroyed. - // Clear the continuation, to make sure it doesn't keep any ref-counted - // copies of this, so that the allocated memory can be freed. - QMutexLocker lock(&d->continuationMutex); - d->continuation = nullptr; -} - void QFutureInterfaceBase::runContinuation() const { QMutexLocker lock(&d->continuationMutex); |