From f636f06b458782289340a61e42e6bbc1e523f937 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 11 Jun 2019 09:38:25 +0200 Subject: [PATCH] Debugger: Remove GdbServerPortsGatherer::setDevice Apparently not used anymore. Change-Id: Ic9ee826edd383254dcb77ea435843904a53d10a8 Reviewed-by: Christian Kandeler --- src/plugins/debugger/debuggerplugin.cpp | 1 - src/plugins/debugger/debuggerruncontrol.cpp | 6 ------ src/plugins/debugger/debuggerruncontrol.h | 3 --- 3 files changed, 10 deletions(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index e08e26e0e14..55522ce05fa 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1640,7 +1640,6 @@ public: { setId("AttachToRunningProcess"); setUsePortsGatherer(true, false); - portsGatherer()->setDevice(runControl->device()); auto gdbServer = new GdbServerRunner(runControl, portsGatherer()); gdbServer->setUseMulti(false); diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index f68d637e1f2..492ffa173a2 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -1043,7 +1043,6 @@ GdbServerPortsGatherer::GdbServerPortsGatherer(RunControl *runControl) : ChannelProvider(runControl, 2) { setId("GdbServerPortsGatherer"); - m_device = runControl->device(); } GdbServerPortsGatherer::~GdbServerPortsGatherer() = default; @@ -1070,11 +1069,6 @@ QUrl GdbServerPortsGatherer::qmlServer() const return channel(1); } -void GdbServerPortsGatherer::setDevice(IDevice::ConstPtr device) -{ - m_device = device; -} - // GdbServerRunner GdbServerRunner::GdbServerRunner(RunControl *runControl, GdbServerPortsGatherer *portsGatherer) diff --git a/src/plugins/debugger/debuggerruncontrol.h b/src/plugins/debugger/debuggerruncontrol.h index f5512dd9911..e4660acd5e0 100644 --- a/src/plugins/debugger/debuggerruncontrol.h +++ b/src/plugins/debugger/debuggerruncontrol.h @@ -155,12 +155,9 @@ public: Utils::Port qmlServerPort() const; QUrl qmlServer() const; - void setDevice(ProjectExplorer::IDevice::ConstPtr device); - private: bool m_useGdbServer = false; bool m_useQmlServer = false; - ProjectExplorer::IDevice::ConstPtr m_device; }; class DEBUGGER_EXPORT GdbServerRunner : public ProjectExplorer::SimpleTargetRunner