forked from qt-creator/qt-creator
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:
@@ -169,7 +169,7 @@ AndroidRunnerWorker::AndroidRunnerWorker(RunWorker *runner, const QString &packa
|
||||
{
|
||||
auto runControl = runner->runControl();
|
||||
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;
|
||||
m_useCppDebugger = debuggingMode && aspect->useCppDebugger();
|
||||
if (debuggingMode && aspect->useQmlDebugger())
|
||||
|
@@ -1424,11 +1424,6 @@ const Runnable &RunWorker::runnable() const
|
||||
return d->runControl->runnable();
|
||||
}
|
||||
|
||||
Core::Id RunWorker::runMode() const
|
||||
{
|
||||
return d->runControl->runMode();
|
||||
}
|
||||
|
||||
void RunWorker::addStartDependency(RunWorker *dependency)
|
||||
{
|
||||
d->startDependencies.append(dependency);
|
||||
|
@@ -108,7 +108,6 @@ public:
|
||||
void appendMessage(const QString &msg, Utils::OutputFormat format, bool appendNewLine = true);
|
||||
IDevice::ConstPtr device() const;
|
||||
const Runnable &runnable() const;
|
||||
Core::Id runMode() const;
|
||||
|
||||
// States
|
||||
void initiateStart();
|
||||
|
Reference in New Issue
Block a user