aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customtoolchain.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-07-08 12:33:55 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-07-14 14:45:40 +0000
commit03ad5ccc44e7385bd0d16a12755e7cfc9e2f0964 (patch)
tree425618e13d11d327b04a31b03dca8a134e0a3e48 /src/plugins/projectexplorer/customtoolchain.cpp
parentc275dac0843d52e5743d0c8b719323fadf6d312a (diff)
ToolChainFactories: Remove some code that is not necessary
Change-Id: I2cd3940960bad385bc2bf70959df57847dcd101f Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index bf14b14cb4..e471c97c15 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -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
// --------------------------------------------------------------------------