Commit e9e405cb authored by Daniel Teske's avatar Daniel Teske
Browse files

DebuggerRunControlFactory::createAndScheduleRun: Remove unused parameter



No caller actually passed in a runconfiguration.

Change-Id: I68a0cea8cd5d9bbdd4fb0b979ef4c5698f5b769d
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent d40585d7
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment