Remove useless code

Kit names are unique already, no need to try and make them more
unique:-)

Change-Id: I315387808aec790b85ee301f22984eda81608467
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2012-09-25 11:11:02 +02:00
parent 0ac20fc1b5
commit 78660abd52

View File

@@ -153,13 +153,7 @@ void Project::addTarget(Target *t)
QTC_ASSERT(!target(t->kit()), return);
Q_ASSERT(t->project() == this);
// Check that we don't have a configuration with the same displayName
QString targetDisplayName = t->displayName();
QStringList displayNames;
foreach (const Target *target, d->m_targets)
displayNames << target->displayName();
targetDisplayName = makeUnique(targetDisplayName, displayNames);
t->setDefaultDisplayName(targetDisplayName);
t->setDefaultDisplayName(t->displayName());
// add it
d->m_targets.push_back(t);