Remove dead code from qpixmap autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 28 Oct 2011 07:06:11 +0000 (17:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 01:34:23 +0000 (02:34 +0100)
The removed code was in #if 0 in the original commit of the test
function and appears to be an earlier version that should have been
discarded before the initial commit.

Change-Id: I91f16aa7adcccb50f4f3a02062fb9d105d85000c
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/gui/image/qpixmap/tst_qpixmap.cpp

index 4be8a40..285db97 100644 (file)
@@ -419,13 +419,7 @@ void tst_QPixmap::scroll()
     else
         QVERIFY(pixmap.cacheKey() != oldKey);
 
-#if 0
-    // Remember to add to resources.
-    QString fileName = QString("images/%1.png").arg(QTest::currentDataTag());
-    pixmap.toImage().save(fileName);
-#else
     QString fileName = QString(":/images/%1.png").arg(QTest::currentDataTag());
-#endif
     QPixmap output(fileName);
     QVERIFY(input.isNull() == output.isNull());
     QVERIFY(lenientCompare(pixmap, output));