ProjectExplorer: Remove RunWorker::runMode()

Only used once, and that use can be replaced.

Change-Id: I844254dfff9bb2b2c9c56ecbd56d2af2241fd2d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-03-13 15:53:28 +01:00
parent 00eae6f204
commit 5672e1199a
3 changed files with 1 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ AndroidRunnerWorker::AndroidRunnerWorker(RunWorker *runner, const QString &packa
{ {
auto runControl = runner->runControl(); auto runControl = runner->runControl();
auto aspect = runControl->aspect<Debugger::DebuggerRunConfigurationAspect>(); auto aspect = runControl->aspect<Debugger::DebuggerRunConfigurationAspect>();
Core::Id runMode = runner->runMode(); Core::Id runMode = runControl->runMode();
const bool debuggingMode = runMode == ProjectExplorer::Constants::DEBUG_RUN_MODE; const bool debuggingMode = runMode == ProjectExplorer::Constants::DEBUG_RUN_MODE;
m_useCppDebugger = debuggingMode && aspect->useCppDebugger(); m_useCppDebugger = debuggingMode && aspect->useCppDebugger();
if (debuggingMode && aspect->useQmlDebugger()) if (debuggingMode && aspect->useQmlDebugger())

View File

@@ -1424,11 +1424,6 @@ const Runnable &RunWorker::runnable() const
return d->runControl->runnable(); return d->runControl->runnable();
} }
Core::Id RunWorker::runMode() const
{
return d->runControl->runMode();
}
void RunWorker::addStartDependency(RunWorker *dependency) void RunWorker::addStartDependency(RunWorker *dependency)
{ {
d->startDependencies.append(dependency); d->startDependencies.append(dependency);

View File

@@ -108,7 +108,6 @@ public:
void appendMessage(const QString &msg, Utils::OutputFormat format, bool appendNewLine = true); void appendMessage(const QString &msg, Utils::OutputFormat format, bool appendNewLine = true);
IDevice::ConstPtr device() const; IDevice::ConstPtr device() const;
const Runnable &runnable() const; const Runnable &runnable() const;
Core::Id runMode() const;
// States // States
void initiateStart(); void initiateStart();