forked from qt-creator/qt-creator
ProjectExplorer: Remove allDeployConfigurationFactories() accessor
It's only used once to check whether there exist at least one. Since there's always the DefaultConfigurationFactory when the ProjectExplorer is present, this check will always succeed. Change-Id: Id457701bd6c8f68b91a0e225507181a878faac4a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -262,9 +262,6 @@ void Target::addDeployConfiguration(DeployConfiguration *dc)
|
||||
QTC_ASSERT(dc && !d->m_deployConfigurations.contains(dc), return);
|
||||
Q_ASSERT(dc->target() == this);
|
||||
|
||||
if (DeployConfigurationFactory::allDeployConfigurationFactories().isEmpty())
|
||||
return;
|
||||
|
||||
// Check that we don't have a configuration with the same displayName
|
||||
QString configurationDisplayName = dc->displayName();
|
||||
QStringList displayNames = Utils::transform(d->m_deployConfigurations, &DeployConfiguration::displayName);
|
||||
|
||||
Reference in New Issue
Block a user