summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-20 19:26:11 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-08 20:58:01 (GMT)
commitda8faa8c7e54df0abbdfd50c29235320164453aa (patch)
treec77423e5752786c6420c1df224e37e6f09d3cc37 /Source/cmState.cxx
parentc3f41af2be49c1850c526eeac381b0c5989d7f15 (diff)
downloadCMake-da8faa8c7e54df0abbdfd50c29235320164453aa.zip
CMake-da8faa8c7e54df0abbdfd50c29235320164453aa.tar.gz
CMake-da8faa8c7e54df0abbdfd50c29235320164453aa.tar.bz2
cmState: remove RemoveUnscriptableCommands
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index aca0358..43f439c 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -410,21 +410,6 @@ void cmState::AddCommand(cmCommand* command)
this->Commands.insert(std::make_pair(name, command));
}
-void cmState::RemoveUnscriptableCommands()
-{
- std::vector<std::string> unscriptableCommands;
- for (std::map<std::string, cmCommand*>::iterator pos =
- this->Commands.begin();
- pos != this->Commands.end();) {
- if (!pos->second->IsScriptable()) {
- delete pos->second;
- this->Commands.erase(pos++);
- } else {
- ++pos;
- }
- }
-}
-
cmCommand* cmState::GetCommand(std::string const& name) const
{
cmCommand* command = CM_NULLPTR;