Debugger: Remove GdbServerPortsGatherer::setDevice

Apparently not used anymore.

Change-Id: Ic9ee826edd383254dcb77ea435843904a53d10a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-11 09:38:25 +02:00
parent 8ec882a6e6
commit f636f06b45
3 changed files with 0 additions and 10 deletions

View File

@@ -1640,7 +1640,6 @@ public:
{ {
setId("AttachToRunningProcess"); setId("AttachToRunningProcess");
setUsePortsGatherer(true, false); setUsePortsGatherer(true, false);
portsGatherer()->setDevice(runControl->device());
auto gdbServer = new GdbServerRunner(runControl, portsGatherer()); auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
gdbServer->setUseMulti(false); gdbServer->setUseMulti(false);

View File

@@ -1043,7 +1043,6 @@ GdbServerPortsGatherer::GdbServerPortsGatherer(RunControl *runControl)
: ChannelProvider(runControl, 2) : ChannelProvider(runControl, 2)
{ {
setId("GdbServerPortsGatherer"); setId("GdbServerPortsGatherer");
m_device = runControl->device();
} }
GdbServerPortsGatherer::~GdbServerPortsGatherer() = default; GdbServerPortsGatherer::~GdbServerPortsGatherer() = default;
@@ -1070,11 +1069,6 @@ QUrl GdbServerPortsGatherer::qmlServer() const
return channel(1); return channel(1);
} }
void GdbServerPortsGatherer::setDevice(IDevice::ConstPtr device)
{
m_device = device;
}
// GdbServerRunner // GdbServerRunner
GdbServerRunner::GdbServerRunner(RunControl *runControl, GdbServerPortsGatherer *portsGatherer) GdbServerRunner::GdbServerRunner(RunControl *runControl, GdbServerPortsGatherer *portsGatherer)

View File

@@ -155,12 +155,9 @@ public:
Utils::Port qmlServerPort() const; Utils::Port qmlServerPort() const;
QUrl qmlServer() const; QUrl qmlServer() const;
void setDevice(ProjectExplorer::IDevice::ConstPtr device);
private: private:
bool m_useGdbServer = false; bool m_useGdbServer = false;
bool m_useQmlServer = false; bool m_useQmlServer = false;
ProjectExplorer::IDevice::ConstPtr m_device;
}; };
class DEBUGGER_EXPORT GdbServerRunner : public ProjectExplorer::SimpleTargetRunner class DEBUGGER_EXPORT GdbServerRunner : public ProjectExplorer::SimpleTargetRunner