diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-05-10 13:49:55 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-05-10 18:01:49 +0200 |
commit | 78d8afed1ff1f8291dba4315768cf873c27789f2 (patch) | |
tree | 5a692d87f8248a2a58e5d7e3c495c85149e42696 /src | |
parent | 3b096530e15481e89c38e5657df34e64f36d9831 (diff) |
Remove the broken qToVoidFuture() function
QFuture already has a constructor from QFuture<T> to QFuture<void>. It's
safe to remove this function, since it couldn't be ever used: it tries
to access QFuture's private member, which leads to compilation error. It
was never documented or tested.
Change-Id: Iaed9602e2737455d159012ea18ca241954e1f7df
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/thread/qfuture.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/corelib/thread/qfuture.h b/src/corelib/thread/qfuture.h index 9aa77ccf2f..748b3a5403 100644 --- a/src/corelib/thread/qfuture.h +++ b/src/corelib/thread/qfuture.h @@ -431,12 +431,6 @@ inline QFuture<void> QFutureInterface<void>::future() return QFuture<void>(this); } -template <typename T> -QFuture<void> qToVoidFuture(const QFuture<T> &future) -{ - return QFuture<void>(future.d); -} - Q_DECLARE_SEQUENTIAL_ITERATOR(Future) QT_END_NAMESPACE |