forked from qt-creator/qt-creator
RemoteLinux: Remove some unneeded code from GenericLinuxDeviceTester
Change-Id: Iabf995b340a521311f9f946c05e346ef07f4b3bf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -45,13 +45,11 @@ enum State { Inactive, Connecting, RunningUname, TestingPorts };
|
|||||||
class GenericLinuxDeviceTesterPrivate
|
class GenericLinuxDeviceTesterPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GenericLinuxDeviceTesterPrivate() : connection(0), state(Inactive) {}
|
|
||||||
|
|
||||||
IDevice::ConstPtr deviceConfiguration;
|
IDevice::ConstPtr deviceConfiguration;
|
||||||
SshConnection *connection;
|
SshConnection *connection = nullptr;
|
||||||
SshRemoteProcess::Ptr process;
|
SshRemoteProcess::Ptr process;
|
||||||
DeviceUsedPortsGatherer portsGatherer;
|
DeviceUsedPortsGatherer portsGatherer;
|
||||||
State state;
|
State state = Inactive;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
@@ -105,11 +103,6 @@ void GenericLinuxDeviceTester::stopTest()
|
|||||||
setFinished(TestFailure);
|
setFinished(TestFailure);
|
||||||
}
|
}
|
||||||
|
|
||||||
DeviceUsedPortsGatherer *GenericLinuxDeviceTester::usedPortsGatherer() const
|
|
||||||
{
|
|
||||||
return &d->portsGatherer;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GenericLinuxDeviceTester::handleConnected()
|
void GenericLinuxDeviceTester::handleConnected()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(d->state == Connecting, return);
|
QTC_ASSERT(d->state == Connecting, return);
|
||||||
|
|||||||
@@ -29,10 +29,6 @@
|
|||||||
|
|
||||||
#include <projectexplorer/devicesupport/idevice.h>
|
#include <projectexplorer/devicesupport/idevice.h>
|
||||||
|
|
||||||
namespace ProjectExplorer { class DeviceUsedPortsGatherer; }
|
|
||||||
namespace QSsh { class SshConnection; }
|
|
||||||
namespace ProjectExplorer { class DeviceUsedPortsGatherer; }
|
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
|
|
||||||
namespace Internal { class GenericLinuxDeviceTesterPrivate; }
|
namespace Internal { class GenericLinuxDeviceTesterPrivate; }
|
||||||
@@ -48,8 +44,6 @@ public:
|
|||||||
void testDevice(const ProjectExplorer::IDevice::ConstPtr &deviceConfiguration);
|
void testDevice(const ProjectExplorer::IDevice::ConstPtr &deviceConfiguration);
|
||||||
void stopTest();
|
void stopTest();
|
||||||
|
|
||||||
ProjectExplorer::DeviceUsedPortsGatherer *usedPortsGatherer() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void handleConnected();
|
void handleConnected();
|
||||||
void handleConnectionFailure();
|
void handleConnectionFailure();
|
||||||
|
|||||||
Reference in New Issue
Block a user