cmPolicies: Remove now-unused GetRequiredPolicyError method

This commit is contained in:
Brad King
2024-11-06 14:46:35 -05:00
parent 659d8bd430
commit ff9bc7291a
2 changed files with 0 additions and 25 deletions

View File

@@ -376,28 +376,6 @@ std::string cmPolicies::GetPolicyDeprecatedWarning(cmPolicies::PolicyID id)
"to the NEW behavior and not rely on setting a policy to OLD.");
}
//! return an error string for when a required policy is unspecified
std::string cmPolicies::GetRequiredPolicyError(cmPolicies::PolicyID id)
{
return cmStrCat(
"Policy ", idToString(id),
" is not set to NEW: ", idToShortDescription(id),
" "
"Run \"cmake --help-policy ",
idToString(id),
"\" for policy details. "
"CMake now requires this policy to be set to NEW by the project. "
"The policy may be set explicitly using the code\n"
" cmake_policy(SET ",
idToString(id),
" NEW)\n"
"or by upgrading all policies with the code\n"
" cmake_policy(VERSION ",
idToVersion(id),
") # or later\n"
"Run \"cmake --help-command cmake_policy\" for more information.");
}
bool cmPolicies::IsRemoved(cmPolicies::PolicyID id)
{
return idToStatus(id) == cmPolicies::NEW;

View File

@@ -656,9 +656,6 @@ public:
static std::string GetPolicyWarning(cmPolicies::PolicyID id);
static std::string GetPolicyDeprecatedWarning(cmPolicies::PolicyID id);
//! return an error string for when a required policy is unspecified
static std::string GetRequiredPolicyError(cmPolicies::PolicyID id);
//! return an error string for when a required policy is unspecified
static std::string GetRemovedPolicyError(cmPolicies::PolicyID id);