From 2ce2992f5e492c15009707e620ba7f563bb4def2 Mon Sep 17 00:00:00 2001 From: Johannes Kauffmann Date: Tue, 20 Sep 2022 01:28:26 +0200 Subject: [PATCH] tst_qprocess: remove unused loop counter Change-Id: I1eece5a676cfa02fff27be01f25b07ddd82c40d6 Reviewed-by: Thiago Macieira --- tests/auto/corelib/io/qprocess/tst_qprocess.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp index a2b3dfc154..08ab2106c3 100644 --- a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp +++ b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp @@ -355,9 +355,7 @@ void tst_QProcess::readFromProcess() { QProcess *process = qobject_cast(sender()); QVERIFY(process); - int lines = 0; while (process->canReadLine()) { - ++lines; process->readLine(); } }