diff options
author | Brad King <brad.king@kitware.com> | 2009-12-08 14:38:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-12-08 14:38:36 (GMT) |
commit | 1d91bc64aa824c58ddcffeae4efb14d89a89c493 (patch) | |
tree | 773e2247ff84d25396a8b6c13a725e8d6ec890e1 /Source/cmake.cxx | |
parent | f1d4f951d625c0168c445eb6512463dcc2f4a0cf (diff) | |
download | CMake-1d91bc64aa824c58ddcffeae4efb14d89a89c493.zip CMake-1d91bc64aa824c58ddcffeae4efb14d89a89c493.tar.gz CMake-1d91bc64aa824c58ddcffeae4efb14d89a89c493.tar.bz2 |
Remove unused DumpDocumentation code
The DumpDocumentation executable and some supporting code and tests were
completely unused by CMake. Generation of documentation is done by the
individual executables with --help* options. In this commit we simply
remove the unused code, executable, and test.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 031b0c2..a01e0e0 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2322,34 +2322,6 @@ const char* cmake::GetCacheDefinition(const char* name) const return this->CacheManager->GetCacheValue(name); } -int cmake::DumpDocumentationToFile(std::ostream& f) -{ -#ifdef CMAKE_BUILD_WITH_CMAKE - // Loop over all registered commands and print out documentation - const char *name; - const char *terse; - const char *full; - char tmp[1024]; - sprintf(tmp,"Version %s", cmVersion::GetCMakeVersion()); - f << "<html>\n"; - f << "<h1>Documentation for commands of CMake " << tmp << "</h1>\n"; - f << "<ul>\n"; - for(RegisteredCommandsMap::iterator j = this->Commands.begin(); - j != this->Commands.end(); ++j) - { - name = (*j).second->GetName(); - terse = (*j).second->GetTerseDocumentation(); - full = (*j).second->GetFullDocumentation(); - f << "<li><b>" << name << "</b> - " << terse << std::endl - << "<br><i>Usage:</i> " << full << "</li>" << std::endl << std::endl; - } - f << "</ul></html>\n"; -#else - (void)f; -#endif - return 1; -} - void cmake::AddDefaultCommands() { std::list<cmCommand*> commands; |