From 5029a99118f4266bd06e0d594413575830de24a0 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Fri, 28 Oct 2011 17:06:11 +1000 Subject: [PATCH] Remove dead code from qpixmap autotest 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 --- tests/auto/gui/image/qpixmap/tst_qpixmap.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp index 4be8a40..285db97 100644 --- a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp @@ -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)); -- 2.7.4