Remove commented code from qfuture test.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 11 Nov 2011 03:30:00 +0000 (13:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 04:15:04 +0000 (05:15 +0100)
The removed code was already commented out when first added in November
2007 and is nowhere near compiling.  If there was anything of value
here, anyone who is able to find it is free to re-add a version that
actually works.

Change-Id: I4a7127a272254224f6a1e65fbd2a01000a4d2be9
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/concurrent/qfuture/tst_qfuture.cpp

index 495884c..0ea5478 100644 (file)
@@ -1258,26 +1258,6 @@ void tst_QFuture::throttling()
 
         i.reportFinished();
     }
-/*
-    QFutureInterface<int> *Interface = new QFutureInterface<int>();
-    Interface.reportStarted();
-    QFuture<int> f =  QFuture<int>(Interface);
-
-    ResultObject object;
-    f.connectTo(ThrottledResultReadyAtSignal, &object, SLOT(resultReady(int)), Qt::DirectConnection);
-
-    for (int i = 0; i < 100; ++i)
-        Interface.reportResult(&i);
-
-    QVERIFY(Interface.isPaused() == true);
-
-    // read the results, this should resume the task.
-    for (int i = 0; i < 100; ++i)
-        f.throttledResult(i);
-
-    QVERIFY(Interface.isPaused() == false);
-    Interface.reportFinished();
-*/
 }
 
 void tst_QFuture::voidConversions()