summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qpixmapcache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/gui/image/qpixmapcache')
-rw-r--r--tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp b/tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp
index 3158883ef5..da0ab4c6e0 100644
--- a/tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp
+++ b/tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp
@@ -107,24 +107,15 @@ void tst_QPixmapCache::setCacheLimit()
QPixmap res;
QPixmap *p1 = new QPixmap(2, 3);
QPixmapCache::insert("P1", *p1);
-#if QT_DEPRECATED_SINCE(5, 13)
- QVERIFY(QPixmapCache::find("P1") != 0);
-#endif
QVERIFY(QPixmapCache::find("P1", &res));
delete p1;
QPixmapCache::setCacheLimit(0);
-#if QT_DEPRECATED_SINCE(5, 13)
- QVERIFY(!QPixmapCache::find("P1"));
-#endif
QVERIFY(!QPixmapCache::find("P1", &res));
p1 = new QPixmap(2, 3);
QPixmapCache::setCacheLimit(1000);
QPixmapCache::insert("P1", *p1);
-#if QT_DEPRECATED_SINCE(5, 13)
- QVERIFY(QPixmapCache::find("P1") != 0);
-#endif
QVERIFY(QPixmapCache::find("P1", &res));
delete p1;
@@ -210,17 +201,6 @@ void tst_QPixmapCache::find()
QVERIFY(QPixmapCache::insert("P1", p1));
QPixmap p2;
-#if QT_DEPRECATED_SINCE(5, 13)
- QVERIFY(QPixmapCache::find("P1", p2));
- QCOMPARE(p2.width(), 10);
- QCOMPARE(p2.height(), 10);
- QCOMPARE(p1, p2);
-
- // obsolete
- QPixmap *p3 = QPixmapCache::find("P1");
- QVERIFY(p3);
- QCOMPARE(p1, *p3);
-#endif
QVERIFY(QPixmapCache::find("P1", &p2));
QCOMPARE(p2.width(), 10);
@@ -278,16 +258,6 @@ void tst_QPixmapCache::insert()
}
int num = 0;
-#if QT_DEPRECATED_SINCE(5, 13)
- for (int k = 0; k < numberOfKeys; ++k) {
- if (QPixmapCache::find(QString::number(k)))
- ++num;
- }
-
- if (QPixmapCache::find("0"))
- ++num;
- num = 0;
-#endif
QPixmap res;
for (int k = 0; k < numberOfKeys; ++k) {
if (QPixmapCache::find(QString::number(k), &res))