From 5ef97a0182e72abd12f19b0d396ff8b77324772f Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 23 Aug 2022 22:03:01 +0400 Subject: cmDocumentation: Drop unused `SetSections` method --- Source/cmDocumentation.cxx | 7 ------- Source/cmDocumentation.h | 1 - 2 files changed, 8 deletions(-) diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 5db8e49..e626f7e 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -370,13 +370,6 @@ void cmDocumentation::SetSection(const char* name, this->SectionAtName(name) = std::move(section); } -void cmDocumentation::SetSections( - std::map sections) -{ - for (auto& s : sections) { - this->SetSection(s.first.c_str(), std::move(s.second)); - } -} cmDocumentationSection& cmDocumentation::SectionAtName(const char* name) { return this->AllSections.emplace(name, cmDocumentationSection{ name }) diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h index f878acb..6930986 100644 --- a/Source/cmDocumentation.h +++ b/Source/cmDocumentation.h @@ -82,7 +82,6 @@ public: sec.Append(docs); this->SetSection(sectionName, std::move(sec)); } - void SetSections(std::map sections); /** Add the documentation to the beginning/end of the section */ template -- cgit v0.12