forked from qt-creator/qt-creator
Remove never called removeUnconfiguredCustomExectutableRunConfigurations
Change-Id: Ieb8bb1ec3ad9a4a68ae1c95fe1b3effff386c605 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -56,18 +56,4 @@ QmakeRunConfigurationFactory *QmakeRunConfigurationFactory::find(ProjectExplorer
|
||||
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
|
||||
|
||||
@@ -53,9 +53,6 @@ public:
|
||||
ProjectExplorer::Node *n) = 0;
|
||||
|
||||
static QmakeRunConfigurationFactory *find(ProjectExplorer::Target *t);
|
||||
|
||||
protected:
|
||||
void removeUnconfiguredCustomExectutableRunConfigurations(ProjectExplorer::Target *t);
|
||||
};
|
||||
|
||||
} // Qt4ProjectManager
|
||||
|
||||
Reference in New Issue
Block a user