Commit 78660abd authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Remove useless code



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

Change-Id: I315387808aec790b85ee301f22984eda81608467
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 0ac20fc1
......@@ -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);
......
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