summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-21 19:03:21 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-26 15:48:47 (GMT)
commit11f35d340ed359df6202f23fc143b2fd36de5995 (patch)
tree062cce74d92ae79e8ac46198f6e9faf8c8d12346 /Source
parentae51aa32f0589e4f5fc9a251a5be534cba631876 (diff)
downloadCMake-11f35d340ed359df6202f23fc143b2fd36de5995.zip
CMake-11f35d340ed359df6202f23fc143b2fd36de5995.tar.gz
CMake-11f35d340ed359df6202f23fc143b2fd36de5995.tar.bz2
cmCommand refactor: remove unused AddDisallowedCommand overload
Diffstat (limited to 'Source')
-rw-r--r--Source/cmState.cxx11
-rw-r--r--Source/cmState.h3
2 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index b6f1808..902287c 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -14,7 +14,6 @@
#include "cmCacheManager.h"
#include "cmCommand.h"
#include "cmDefinitions.h"
-#include "cmDisallowedCommand.h"
#include "cmExecutionStatus.h"
#include "cmGlobVerificationManager.h"
#include "cmListFileCache.h"
@@ -485,16 +484,6 @@ void cmState::AddDisallowedCommand(std::string const& name,
});
}
-void cmState::AddDisallowedCommand(std::string const& name,
- std::unique_ptr<cmCommand> command,
- cmPolicies::PolicyID policy,
- const char* message)
-{
- this->AddBuiltinCommand(
- name,
- cm::make_unique<cmDisallowedCommand>(std::move(command), policy, message));
-}
-
void cmState::AddUnexpectedCommand(std::string const& name, const char* error)
{
this->AddBuiltinCommand(
diff --git a/Source/cmState.h b/Source/cmState.h
index 937ab61..a7ca015 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -159,9 +159,6 @@ public:
void AddBuiltinCommand(std::string const& name, BuiltinCommand command);
void AddDisallowedCommand(std::string const& name, BuiltinCommand command,
cmPolicies::PolicyID policy, const char* message);
- void AddDisallowedCommand(std::string const& name,
- std::unique_ptr<cmCommand> command,
- cmPolicies::PolicyID policy, const char* message);
void AddUnexpectedCommand(std::string const& name, const char* error);
void AddScriptedCommand(std::string const& name, Command command);
void RemoveBuiltinCommand(std::string const& name);