From ee2960989e96b09d44fa052ccf981529a007c378 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 28 Dec 2021 17:09:36 +0100 Subject: [PATCH] Remove unused SshConnection::dataAvailable() signal Change-Id: I1e12965931a7623ed03d0e703b275eb02ddaf6c7 Reviewed-by: Artem Sokolovskii Reviewed-by: hjk Reviewed-by: Qt CI Bot Reviewed-by: --- src/libs/ssh/sshconnection.h | 1 - tests/auto/ssh/tst_ssh.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/libs/ssh/sshconnection.h b/src/libs/ssh/sshconnection.h index cecd9999753..b095098bbc0 100644 --- a/src/libs/ssh/sshconnection.h +++ b/src/libs/ssh/sshconnection.h @@ -127,7 +127,6 @@ public: signals: void connected(); void disconnected(); - void dataAvailable(const QString &message); void errorOccurred(); private: diff --git a/tests/auto/ssh/tst_ssh.cpp b/tests/auto/ssh/tst_ssh.cpp index 1141ecd3f68..0203d638f86 100644 --- a/tests/auto/ssh/tst_ssh.cpp +++ b/tests/auto/ssh/tst_ssh.cpp @@ -183,13 +183,10 @@ void tst_Ssh::errorHandling() SshConnection connection(params); QEventLoop loop; bool disconnected = false; - QString dataReceived; QObject::connect(&connection, &SshConnection::connected, &loop, &QEventLoop::quit); QObject::connect(&connection, &SshConnection::errorOccurred, &loop, &QEventLoop::quit); QObject::connect(&connection, &SshConnection::disconnected, [&disconnected] { disconnected = true; }); - QObject::connect(&connection, &SshConnection::dataAvailable, - [&dataReceived](const QString &data) { dataReceived = data; }); QTimer timer; QObject::connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit); timer.setSingleShot(true); @@ -202,7 +199,6 @@ void tst_Ssh::errorHandling() : SshConnection::Unconnected); QCOMPARE(connection.errorString().isEmpty(), expectConnected); QVERIFY(!disconnected); - QVERIFY2(dataReceived.isEmpty(), qPrintable(dataReceived)); } void tst_Ssh::pristineConnectionObject()