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 committed 2014-05-09 11:17:32 -04:00
1 parent d91c0f7a3f
commit cb810abe6d
2 files changed
+3 -12

No files matched your search

+3 -10
View File
@@ -3177,12 +3177,6 @@ const char* cmTarget::GetFeature(const std::string& feature,
return this->Makefile->GetFeature(feature, config); return this->Makefile->GetFeature(feature, config);
} }
//----------------------------------------------------------------------------
const char *cmTarget::GetProperty(const std::string& prop) const
{
return this->GetProperty(prop, cmProperty::TARGET);
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool cmTarget::HandleLocationPropertyPolicy() const bool cmTarget::HandleLocationPropertyPolicy() const
{ {
@@ -3221,8 +3215,7 @@ bool cmTarget::HandleLocationPropertyPolicy() const
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
const char *cmTarget::GetProperty(const std::string& prop, const char *cmTarget::GetProperty(const std::string& prop) const
cmProperty::ScopeType scope) const
{ {
if (this->GetType() == INTERFACE_LIBRARY if (this->GetType() == INTERFACE_LIBRARY
&& !whiteListedInterfaceProperty(prop)) && !whiteListedInterfaceProperty(prop))
@@ -3489,10 +3482,10 @@ const char *cmTarget::GetProperty(const std::string& 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;
} }
-2
View File
@@ -231,8 +231,6 @@ public:
void AppendProperty(const std::string& prop, const char* value, void AppendProperty(const std::string& prop, const char* value,
bool asString=false); bool asString=false);
const char *GetProperty(const std::string& prop) const; const char *GetProperty(const std::string& prop) const;
const char *GetProperty(const std::string& prop,
cmProperty::ScopeType scope) const;
bool GetPropertyAsBool(const std::string& prop) const; bool GetPropertyAsBool(const std::string& prop) const;
void CheckProperty(const std::string& prop, cmMakefile* context) const; void CheckProperty(const std::string& prop, cmMakefile* context) const;