Browse Source

cmDocumentation: Drop unused `SetSections` method

Alex Turbov 3 years ago
parent
commit
5ef97a0182
2 changed files with 0 additions and 8 deletions
  1. 0 7
      Source/cmDocumentation.cxx
  2. 0 1
      Source/cmDocumentation.h

+ 0 - 7
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 })

+ 0 - 1
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>