mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Drop builtin command documentation
Drop all GetTerseDocumentation and GetFullDocumentation methods from commands. The command documentation is now in Help/command/*.rst files.
This commit is contained in:
@@ -71,23 +71,6 @@ public:
|
||||
*/
|
||||
virtual const char* GetName() const { return info.Name; }
|
||||
|
||||
/**
|
||||
* Succinct documentation.
|
||||
*/
|
||||
virtual const char* GetTerseDocumentation() const
|
||||
{
|
||||
if (this->info.GetTerseDocumentation)
|
||||
{
|
||||
cmLoadedCommand::InstallSignalHandlers(info.Name);
|
||||
const char* ret = info.GetTerseDocumentation();
|
||||
cmLoadedCommand::InstallSignalHandlers(info.Name, 1);
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "LoadedCommand without any additional documentation";
|
||||
}
|
||||
}
|
||||
static const char* LastName;
|
||||
static void TrapsForSignals(int sig)
|
||||
{
|
||||
@@ -120,24 +103,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* More documentation.
|
||||
*/
|
||||
virtual const char* GetFullDocumentation() const
|
||||
{
|
||||
if (this->info.GetFullDocumentation)
|
||||
{
|
||||
cmLoadedCommand::InstallSignalHandlers(info.Name);
|
||||
const char* ret = info.GetFullDocumentation();
|
||||
cmLoadedCommand::InstallSignalHandlers(info.Name, 1);
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "LoadedCommand without any additional documentation";
|
||||
}
|
||||
}
|
||||
|
||||
cmTypeMacro(cmLoadedCommand, cmCommand);
|
||||
|
||||
cmLoadedCommandInfo info;
|
||||
|
||||
Reference in New Issue
Block a user