From a4168bd5e5ace76639b39d42c2e827f4f0898d43 Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Wed, 19 Apr 2023 09:41:50 +0200 Subject: Remove unused variables Removing a few unused variables in auto tests that were triggering `-Wunused-but-set-variable`. Pick-to: 6.5 Change-Id: I74bd0d7335d8bddeb18687b18c8a8be965f9fa20 Reviewed-by: Alexandru Croitor --- tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp') diff --git a/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp b/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp index 0101921f80..d8c6633c2a 100644 --- a/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp +++ b/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp @@ -693,8 +693,6 @@ public: QNetworkDiskCache cache; cache.setCacheDirectory(cachePath); - int read = 0; - int i = 0; for (; i < 5000; ++i) { if (other && other->isFinished()) @@ -745,7 +743,6 @@ public: } if (gotMetaData.isValid()) QVERIFY(x == longString || x == longString2); - read++; delete d; } } @@ -755,7 +752,6 @@ public: cache.clear(); sleep(std::chrono::seconds{0}); } - //qDebug() << "read!" << read << i; } QDateTime dt; -- cgit v1.2.3