cmTarget: Drop unused GetProperty signature

No callers use the second "scope" argument.  Drop this signature and
hard-code the default parameter value internally.
This commit is contained in:
Brad King 2014-05-09 10:04:23 -04:00
parent 890efcb607
commit 2e75bf672b
2 changed files with 3 additions and 11 deletions

View File

@ -2623,12 +2623,6 @@ const char* cmTarget::GetFeature(const char* feature, const char* config) const
return this->Makefile->GetFeature(feature, config); return this->Makefile->GetFeature(feature, config);
} }
//----------------------------------------------------------------------------
const char *cmTarget::GetProperty(const char* prop) const
{
return this->GetProperty(prop, cmProperty::TARGET);
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool cmTarget::HandleLocationPropertyPolicy() const bool cmTarget::HandleLocationPropertyPolicy() const
{ {
@ -2667,8 +2661,7 @@ bool cmTarget::HandleLocationPropertyPolicy() const
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
const char *cmTarget::GetProperty(const char* prop, const char *cmTarget::GetProperty(const char* prop) const
cmProperty::ScopeType scope) const
{ {
if(!prop) if(!prop)
{ {
@ -2857,10 +2850,10 @@ const char *cmTarget::GetProperty(const char* prop,
} }
bool chain = false; bool chain = false;
const char *retVal = const char *retVal =
this->Properties.GetPropertyValue(prop, scope, chain); this->Properties.GetPropertyValue(prop, cmProperty::TARGET, chain);
if (chain) if (chain)
{ {
return this->Makefile->GetProperty(prop,scope); return this->Makefile->GetProperty(prop, cmProperty::TARGET);
} }
return retVal; return retVal;
} }

View File

@ -257,7 +257,6 @@ public:
void SetProperty(const char *prop, const char *value); void SetProperty(const char *prop, const char *value);
void AppendProperty(const char* prop, const char* value,bool asString=false); void AppendProperty(const char* prop, const char* value,bool asString=false);
const char *GetProperty(const char *prop) const; const char *GetProperty(const char *prop) const;
const char *GetProperty(const char *prop, cmProperty::ScopeType scope) const;
bool GetPropertyAsBool(const char *prop) const; bool GetPropertyAsBool(const char *prop) const;
void CheckProperty(const char* prop, cmMakefile* context) const; void CheckProperty(const char* prop, cmMakefile* context) const;