From 78d8afed1ff1f8291dba4315768cf873c27789f2 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Mon, 10 May 2021 13:49:55 +0200 Subject: [PATCH] Remove the broken qToVoidFuture() function QFuture already has a constructor from QFuture to QFuture. 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 --- src/corelib/thread/qfuture.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/corelib/thread/qfuture.h b/src/corelib/thread/qfuture.h index 9aa77ccf2f0..748b3a54031 100644 --- a/src/corelib/thread/qfuture.h +++ b/src/corelib/thread/qfuture.h @@ -431,12 +431,6 @@ inline QFuture QFutureInterface::future() return QFuture(this); } -template -QFuture qToVoidFuture(const QFuture &future) -{ - return QFuture(future.d); -} - Q_DECLARE_SEQUENTIAL_ITERATOR(Future) QT_END_NAMESPACE