diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-19 09:41:50 +0200 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-19 12:55:02 +0200 |
commit | a4168bd5e5ace76639b39d42c2e827f4f0898d43 (patch) | |
tree | 38f297ada4df5bc6d5fae06373f73c53335ba4a3 /tests/auto/network/access/qnetworkdiskcache | |
parent | 9a35bd02dc7b3474d958b7b85d58b5b50f7cb787 (diff) |
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/network/access/qnetworkdiskcache')
-rw-r--r-- | tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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; |