diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-23 18:03:01 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-17 12:37:11 (GMT) |
commit | 5ef97a0182e72abd12f19b0d396ff8b77324772f (patch) | |
tree | 2d47ce4dd31e39e20b134f051273956dc1bc6573 | |
parent | 74b735dea8e2255c53f12afea5706ad443d64785 (diff) | |
download | CMake-5ef97a0182e72abd12f19b0d396ff8b77324772f.zip CMake-5ef97a0182e72abd12f19b0d396ff8b77324772f.tar.gz CMake-5ef97a0182e72abd12f19b0d396ff8b77324772f.tar.bz2 |
cmDocumentation: Drop unused `SetSections` method
-rw-r--r-- | Source/cmDocumentation.cxx | 7 | ||||
-rw-r--r-- | Source/cmDocumentation.h | 1 |
2 files changed, 0 insertions, 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<std::string, cmDocumentationSection> 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<std::string, cmDocumentationSection> sections); /** Add the documentation to the beginning/end of the section */ template <typename Iterable> |