mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
cmCommand refactor: remove unused AddDisallowedCommand overload
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
#include "cmCacheManager.h"
|
#include "cmCacheManager.h"
|
||||||
#include "cmCommand.h"
|
#include "cmCommand.h"
|
||||||
#include "cmDefinitions.h"
|
#include "cmDefinitions.h"
|
||||||
#include "cmDisallowedCommand.h"
|
|
||||||
#include "cmExecutionStatus.h"
|
#include "cmExecutionStatus.h"
|
||||||
#include "cmGlobVerificationManager.h"
|
#include "cmGlobVerificationManager.h"
|
||||||
#include "cmListFileCache.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)
|
void cmState::AddUnexpectedCommand(std::string const& name, const char* error)
|
||||||
{
|
{
|
||||||
this->AddBuiltinCommand(
|
this->AddBuiltinCommand(
|
||||||
|
|||||||
@@ -159,9 +159,6 @@ public:
|
|||||||
void AddBuiltinCommand(std::string const& name, BuiltinCommand command);
|
void AddBuiltinCommand(std::string const& name, BuiltinCommand command);
|
||||||
void AddDisallowedCommand(std::string const& name, BuiltinCommand command,
|
void AddDisallowedCommand(std::string const& name, BuiltinCommand command,
|
||||||
cmPolicies::PolicyID policy, const char* message);
|
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 AddUnexpectedCommand(std::string const& name, const char* error);
|
||||||
void AddScriptedCommand(std::string const& name, Command command);
|
void AddScriptedCommand(std::string const& name, Command command);
|
||||||
void RemoveBuiltinCommand(std::string const& name);
|
void RemoveBuiltinCommand(std::string const& name);
|
||||||
|
|||||||
Reference in New Issue
Block a user