ToolChainFactories: Remove some code that is not necessary

Change-Id: I2cd3940960bad385bc2bf70959df57847dcd101f
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-07-08 12:33:55 +02:00
parent c275dac084
commit 03ad5ccc44
4 changed files with 3 additions and 81 deletions

View File

@@ -383,7 +383,7 @@ bool CustomToolChainFactory::canCreate()
ToolChain *CustomToolChainFactory::create()
{
return createToolChain(false);
return new CustomToolChain(ToolChain::ManualDetection);
}
// Used by the ToolChainManager to restore user-generated tool chains
@@ -402,11 +402,6 @@ ToolChain *CustomToolChainFactory::restore(const QVariantMap &data)
return 0;
}
CustomToolChain *CustomToolChainFactory::createToolChain(bool autoDetect)
{
return new CustomToolChain(autoDetect ? ToolChain::AutoDetection : ToolChain::ManualDetection);
}
// --------------------------------------------------------------------------
// Helper for ConfigWidget
// --------------------------------------------------------------------------