cmake: Remove method with no external users.
Port internal users to access the member.
This commit is contained in:
parent
8c13d7709b
commit
7450a2c6ed
@ -290,9 +290,9 @@ void cmake::AddCommand(cmCommand* wg)
|
|||||||
void cmake::RemoveUnscriptableCommands()
|
void cmake::RemoveUnscriptableCommands()
|
||||||
{
|
{
|
||||||
std::vector<std::string> unscriptableCommands;
|
std::vector<std::string> unscriptableCommands;
|
||||||
cmake::RegisteredCommandsMap* commands = this->GetCommands();
|
for (cmake::RegisteredCommandsMap::const_iterator
|
||||||
for (cmake::RegisteredCommandsMap::const_iterator pos = commands->begin();
|
pos = this->Commands.begin();
|
||||||
pos != commands->end();
|
pos != this->Commands.end();
|
||||||
++pos)
|
++pos)
|
||||||
{
|
{
|
||||||
if (!pos->second->IsScriptable())
|
if (!pos->second->IsScriptable())
|
||||||
@ -2323,8 +2323,8 @@ const char *cmake::GetProperty(const std::string& prop,
|
|||||||
else if ( prop == "COMMANDS" )
|
else if ( prop == "COMMANDS" )
|
||||||
{
|
{
|
||||||
cmake::RegisteredCommandsMap::iterator cmds
|
cmake::RegisteredCommandsMap::iterator cmds
|
||||||
= this->GetCommands()->begin();
|
= this->Commands.begin();
|
||||||
for (unsigned int cc=0 ; cmds != this->GetCommands()->end(); ++ cmds )
|
for (unsigned int cc=0 ; cmds != this->Commands.end(); ++ cmds )
|
||||||
{
|
{
|
||||||
if ( cc > 0 )
|
if ( cc > 0 )
|
||||||
{
|
{
|
||||||
|
@ -249,9 +249,6 @@ class cmake
|
|||||||
*/
|
*/
|
||||||
cmCommand *GetCommand(const std::string& name);
|
cmCommand *GetCommand(const std::string& name);
|
||||||
|
|
||||||
/** Get list of all commands */
|
|
||||||
RegisteredCommandsMap* GetCommands() { return &this->Commands; }
|
|
||||||
|
|
||||||
/** Check if a command exists. */
|
/** Check if a command exists. */
|
||||||
bool CommandExists(const std::string& name) const;
|
bool CommandExists(const std::string& name) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user