forked from qt-creator/qt-creator
ProjectExplorer: Remove unused code
...leaking e.g. QmakeBuildInfo. Change-Id: Id58faebaeef3b6188869e6f56076baa188c0f8dc Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -523,17 +523,6 @@ TargetSetupWidget *TargetSetupPage::addWidget(Kit *k)
|
|||||||
if (!k || (m_requiredPredicate && !m_requiredPredicate(k)))
|
if (!k || (m_requiredPredicate && !m_requiredPredicate(k)))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
const IBuildConfigurationFactory *const factory
|
|
||||||
= IBuildConfigurationFactory::find(k, m_projectPath);
|
|
||||||
const QList<BuildInfo *> infoList = [this, k, factory]() {
|
|
||||||
if (factory)
|
|
||||||
return factory->availableSetups(k, m_projectPath);
|
|
||||||
|
|
||||||
auto *info = new BuildInfo(nullptr);
|
|
||||||
info->kitId = k->id();
|
|
||||||
return QList<BuildInfo *>({info});
|
|
||||||
}();
|
|
||||||
|
|
||||||
// Not all projects have BuildConfigurations, that is perfectly fine.
|
// Not all projects have BuildConfigurations, that is perfectly fine.
|
||||||
auto *widget = new TargetSetupWidget(k, m_projectPath);
|
auto *widget = new TargetSetupWidget(k, m_projectPath);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user