Remove obsolete code from qtconcurrentiteratekernel test.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 01:32:22 +0000 (11:32 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 04:27:40 +0000 (05:27 +0100)
The removed code refers to WhileIteration, which does not exist.

Change-Id: I4c44bc319ac776d16ce9ba7b5c2938ce1642a3f6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp

index 65c3f53..4af71d5 100644 (file)
@@ -100,11 +100,6 @@ private slots:
     void blockSize();
     void multipleResults();
 #endif
-#if 0
-    //"while" iterations tests:
-    void instantiateWhile();
-    void stresstestWhile();
-#endif
 };
 
 QAtomicInt iterations;
@@ -309,45 +304,6 @@ void tst_QtConcurrentIterateKernel::multipleResults()
 }
 #endif
 
-#if 0
-class PrintWhile : public IterateKernel<TestIterator, void>
-{
-public:
-    PrintWhile() : IterateKernel<TestIterator, void>(0, 10, WhileIteration) { }
-    bool runIteration(TestIterator it, TestIterator, void *)
-    {
-        return false;
-    }
-};
-
-void tst_QtConcurrentIterateKernel::instantiateWhile()
-{
-    PrintWhile w;
-    w.startBlocking();
-}
-
-QAtomicInt iterationCount;
-class StressWhile : public IterateKernel<TestIterator, void>
-{
-public:
-    StressWhile(TestIterator iterations) : IterateKernel<TestIterator, void>(0, iterations, WhileIteration) { }
-    bool runIteration(TestIterator it, TestIterator index, void *)
-    {
-        if (it == index) // should match.
-            ::iterationCount.ref();
-        return false;
-    }
-};
-
-void tst_QtConcurrentIterateKernel::stresstestWhile()
-{
-    int iterations = 100000;
-    StressWhile w(iterations);
-    w.startBlocking();
-    QCOMPARE(int(iterationCount), iterations);
-}
-#endif
-
 QTEST_MAIN(tst_QtConcurrentIterateKernel)
 
 #include "tst_qtconcurrentiteratekernel.moc"