CMake: Remove unused function

Change-Id: I6b793e0cb01b989f3087dcefe091b77bcfebe370
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Eike Ziller
2019-08-12 12:58:26 +02:00
parent 9be30e4f27
commit b61a5b759b
2 changed files with 0 additions and 15 deletions

View File

@@ -86,20 +86,6 @@ QList<CMakeTool *> CMakeToolManager::cmakeTools()
return Utils::toRawPointer<QList>(d->m_cmakeTools); return Utils::toRawPointer<QList>(d->m_cmakeTools);
} }
Id CMakeToolManager::registerOrFindCMakeTool(const FilePath &command)
{
if (CMakeTool *cmake = findByCommand(command))
return cmake->id();
auto cmake = std::make_unique<CMakeTool>(CMakeTool::ManualDetection, CMakeTool::createId());
cmake->setCMakeExecutable(command);
cmake->setDisplayName(tr("CMake at %1").arg(command.toUserOutput()));
Core::Id id = cmake->id();
QTC_ASSERT(registerCMakeTool(std::move(cmake)), return Core::Id());
return id;
}
bool CMakeToolManager::registerCMakeTool(std::unique_ptr<CMakeTool> &&tool) bool CMakeToolManager::registerCMakeTool(std::unique_ptr<CMakeTool> &&tool)
{ {
if (!tool || Utils::contains(d->m_cmakeTools, tool.get())) if (!tool || Utils::contains(d->m_cmakeTools, tool.get()))

View File

@@ -47,7 +47,6 @@ public:
static QList<CMakeTool *> cmakeTools(); static QList<CMakeTool *> cmakeTools();
static Core::Id registerOrFindCMakeTool(const Utils::FilePath &command);
static bool registerCMakeTool(std::unique_ptr<CMakeTool> &&tool); static bool registerCMakeTool(std::unique_ptr<CMakeTool> &&tool);
static void deregisterCMakeTool(const Core::Id &id); static void deregisterCMakeTool(const Core::Id &id);