Remove never called removeUnconfiguredCustomExectutableRunConfigurations

Change-Id: Ieb8bb1ec3ad9a4a68ae1c95fe1b3effff386c605
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2012-07-04 12:55:17 +02:00
parent aceffa65e3
commit ed42fb2e3c
2 changed files with 0 additions and 17 deletions

View File

@@ -56,18 +56,4 @@ QmakeRunConfigurationFactory *QmakeRunConfigurationFactory::find(ProjectExplorer
return 0; return 0;
} }
void QmakeRunConfigurationFactory::removeUnconfiguredCustomExectutableRunConfigurations(ProjectExplorer::Target *t)
{
QList<ProjectExplorer::RunConfiguration*> toRemove;
// Remove all run configurations which the new project wizard created
foreach (ProjectExplorer::RunConfiguration * rc, t->runConfigurations()) {
QtSupport::CustomExecutableRunConfiguration *cerc
= qobject_cast<QtSupport::CustomExecutableRunConfiguration *>(rc);
if (cerc && !cerc->isConfigured())
toRemove.append(rc);
}
foreach (ProjectExplorer::RunConfiguration *rc, toRemove)
t->removeRunConfiguration(rc);
}
} // namespace Qt4ProjectManager } // namespace Qt4ProjectManager

View File

@@ -53,9 +53,6 @@ public:
ProjectExplorer::Node *n) = 0; ProjectExplorer::Node *n) = 0;
static QmakeRunConfigurationFactory *find(ProjectExplorer::Target *t); static QmakeRunConfigurationFactory *find(ProjectExplorer::Target *t);
protected:
void removeUnconfiguredCustomExectutableRunConfigurations(ProjectExplorer::Target *t);
}; };
} // Qt4ProjectManager } // Qt4ProjectManager