cmMakefile: Remove unused PolicyPushPop interfaces
The PolicyPushPop constructor arguments and Quiet method were used to pass non-default arguments to PushPolicy and PopSnapshot, but no clients use them anymore.
This commit is contained in:
parent
8e1be7bf68
commit
d85c9176ae
|
@ -4601,20 +4601,18 @@ bool cmMakefile::SetPolicy(cmPolicies::PolicyID id,
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmMakefile::PolicyPushPop::PolicyPushPop(cmMakefile* m, bool weak,
|
cmMakefile::PolicyPushPop::PolicyPushPop(cmMakefile* m): Makefile(m)
|
||||||
cmPolicies::PolicyMap const& pm):
|
|
||||||
Makefile(m), ReportError(true)
|
|
||||||
{
|
{
|
||||||
this->Makefile->StateSnapshot = this->Makefile->StateSnapshot.GetState()
|
this->Makefile->StateSnapshot = this->Makefile->StateSnapshot.GetState()
|
||||||
->CreatePolicyScopeSnapshot(this->Makefile->StateSnapshot);
|
->CreatePolicyScopeSnapshot(this->Makefile->StateSnapshot);
|
||||||
this->Makefile->PushPolicy(weak, pm);
|
this->Makefile->PushPolicy();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmMakefile::PolicyPushPop::~PolicyPushPop()
|
cmMakefile::PolicyPushPop::~PolicyPushPop()
|
||||||
{
|
{
|
||||||
this->Makefile->PopPolicy();
|
this->Makefile->PopPolicy();
|
||||||
this->Makefile->PopSnapshot(this->ReportError);
|
this->Makefile->PopSnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -321,14 +321,10 @@ public:
|
||||||
class PolicyPushPop
|
class PolicyPushPop
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PolicyPushPop(cmMakefile* m,
|
PolicyPushPop(cmMakefile* m);
|
||||||
bool weak = false,
|
|
||||||
cmPolicies::PolicyMap const& pm = cmPolicies::PolicyMap());
|
|
||||||
~PolicyPushPop();
|
~PolicyPushPop();
|
||||||
void Quiet() { this->ReportError = false; }
|
|
||||||
private:
|
private:
|
||||||
cmMakefile* Makefile;
|
cmMakefile* Makefile;
|
||||||
bool ReportError;
|
|
||||||
};
|
};
|
||||||
friend class PolicyPushPop;
|
friend class PolicyPushPop;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue