cmPolicies: Remove unused DefinePolicy method.

Policies are no longer defined at runtime.
This commit is contained in:
Stephen Kelly 2015-05-03 10:11:01 +02:00
parent 5641ba4fca
commit 23e2bcc8db
2 changed files with 0 additions and 19 deletions

View File

@ -121,16 +121,6 @@ const char* idToShortDescription(cmPolicies::PolicyID id)
return 0;
}
void cmPolicies::DefinePolicy(cmPolicies::PolicyID,
const char *,
const char *,
unsigned int,
unsigned int,
unsigned int,
cmPolicies::PolicyStatus)
{
}
//----------------------------------------------------------------------------
static void DiagnoseAncientPolicies(
std::vector<cmPolicies::PolicyID> const& ancient,

View File

@ -255,15 +255,6 @@ public:
///! Get the default status for a policy
cmPolicies::PolicyStatus GetPolicyStatus(cmPolicies::PolicyID id);
///! Define a Policy for CMake
void DefinePolicy(cmPolicies::PolicyID id,
const char *stringID,
const char *shortDescription,
unsigned int majorVersionIntroduced,
unsigned int minorVersionIntroduced,
unsigned int patchVersionIntroduced,
cmPolicies::PolicyStatus status);
///! Set a policy level for this listfile
bool ApplyPolicyVersion(cmMakefile *mf, const char *version);