cmake: Remove unused cmCommand methods.

This commit is contained in:
Stephen Kelly 2015-04-11 13:13:57 +02:00 committed by Brad King
parent 0aec491328
commit 24b7f31d3a
2 changed files with 0 additions and 42 deletions

View File

@ -199,32 +199,6 @@ void cmake::CleanupCommandsAndMacros()
this->State->RemoveUserDefinedCommands(); this->State->RemoveUserDefinedCommands();
} }
bool cmake::CommandExists(const std::string& name) const
{
return this->State->GetCommand(name) ? true : false;
}
cmCommand *cmake::GetCommand(const std::string& name) const
{
return this->State->GetCommand(name);
}
void cmake::RenameCommand(const std::string& oldName,
const std::string& newName)
{
this->State->RenameCommand(oldName, newName);
}
void cmake::AddCommand(cmCommand* command)
{
this->State->AddCommand(command);
}
void cmake::RemoveUnscriptableCommands()
{
this->State->RemoveUnscriptableCommands();
}
// Parse the args // Parse the args
bool cmake::SetCacheArgs(const std::vector<std::string>& args) bool cmake::SetCacheArgs(const std::vector<std::string>& args)
{ {

View File

@ -24,7 +24,6 @@ class cmGlobalGeneratorFactory;
class cmGlobalGenerator; class cmGlobalGenerator;
class cmLocalGenerator; class cmLocalGenerator;
class cmMakefile; class cmMakefile;
class cmCommand;
class cmVariableWatch; class cmVariableWatch;
class cmFileTimeComparison; class cmFileTimeComparison;
class cmExternalMakefileProjectGenerator; class cmExternalMakefileProjectGenerator;
@ -216,21 +215,6 @@ class cmake
*/ */
int GetSystemInformation(std::vector<std::string>&); int GetSystemInformation(std::vector<std::string>&);
/**
* Add a command to this cmake instance
*/
void AddCommand(cmCommand* );
void RenameCommand(const std::string& oldName, const std::string& newName);
void RemoveUnscriptableCommands();
/**
* Get a command by its name
*/
cmCommand *GetCommand(const std::string& name) const;
/** Check if a command exists. */
bool CommandExists(const std::string& name) const;
///! Parse command line arguments ///! Parse command line arguments
void SetArgs(const std::vector<std::string>&, void SetArgs(const std::vector<std::string>&,
bool directoriesSetBefore = false); bool directoriesSetBefore = false);