diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-07-29 17:57:04 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-07-31 11:47:09 +0200 |
commit | e9e405cb18e0d7ed7a177fa6d67c2774c2113bfa (patch) | |
tree | 0b49f44ecd8c159dac2969f494d07600869679e6 | |
parent | d40585d7b159301ff323bdf92143519cacb71ed2 (diff) |
DebuggerRunControlFactory::createAndScheduleRun: Remove unused parameter
No caller actually passed in a runconfiguration.
Change-Id: I68a0cea8cd5d9bbdd4fb0b979ef4c5698f5b769d
Reviewed-by: hjk <hjk121@nokiamail.com>
-rw-r--r-- | src/plugins/debugger/debuggerruncontrolfactory.h | 4 | ||||
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/plugins/debugger/debuggerruncontrolfactory.h b/src/plugins/debugger/debuggerruncontrolfactory.h index 4b6ab2be34..52933f09b8 100644 --- a/src/plugins/debugger/debuggerruncontrolfactory.h +++ b/src/plugins/debugger/debuggerruncontrolfactory.h @@ -59,9 +59,7 @@ public: const DebuggerStartParameters &sp, QString *errorMessage); - static DebuggerRunControl *createAndScheduleRun( - const DebuggerStartParameters &sp, - ProjectExplorer::RunConfiguration *runConfiguration = 0); + static DebuggerRunControl *createAndScheduleRun(const DebuggerStartParameters &sp); static DebuggerRunControl *doCreate(const DebuggerStartParameters &sp, ProjectExplorer::RunConfiguration *rc, QString *errorMessage); diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index fcee2fedc2..b715955524 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -454,14 +454,10 @@ IRunConfigurationAspect *DebuggerRunControlFactory::createRunConfigurationAspect return new DebuggerRunConfigurationAspect(rc); } -DebuggerRunControl *DebuggerRunControlFactory::createAndScheduleRun - (const DebuggerStartParameters &sp, RunConfiguration *runConfiguration) +DebuggerRunControl *DebuggerRunControlFactory::createAndScheduleRun(const DebuggerStartParameters &sp) { QString errorMessage; - if (runConfiguration && !runConfiguration->ensureConfigured(&errorMessage)) - ProjectExplorer::ProjectExplorerPlugin::showRunErrorMessage(errorMessage); - - DebuggerRunControl *rc = doCreate(sp, runConfiguration, &errorMessage); + DebuggerRunControl *rc = doCreate(sp, 0, &errorMessage); if (!rc) { ProjectExplorer::ProjectExplorerPlugin::showRunErrorMessage(errorMessage); return 0; |