diff options
author | Brad King <brad.king@kitware.com> | 2014-05-09 14:04:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-09 15:17:32 (GMT) |
commit | cb810abe6d1c4189517d84fa6e08849a02e3f873 (patch) | |
tree | f9547777496cb1a6b0c4b54a7fdd1081e1f21473 /Source | |
parent | d91c0f7a3f406dcf5c803e86ad6ac2e75ec0b85f (diff) | |
download | CMake-cb810abe6d1c4189517d84fa6e08849a02e3f873.zip CMake-cb810abe6d1c4189517d84fa6e08849a02e3f873.tar.gz CMake-cb810abe6d1c4189517d84fa6e08849a02e3f873.tar.bz2 |
cmTarget: Drop unused GetProperty signature
No callers use the second "scope" argument. Drop this signature and
hard-code the default parameter value internally.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 13 | ||||
-rw-r--r-- | Source/cmTarget.h | 2 |
2 files changed, 3 insertions, 12 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index dda855f..6b8d51d 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -3178,12 +3178,6 @@ const char* cmTarget::GetFeature(const std::string& feature, } //---------------------------------------------------------------------------- -const char *cmTarget::GetProperty(const std::string& prop) const -{ - return this->GetProperty(prop, cmProperty::TARGET); -} - -//---------------------------------------------------------------------------- bool cmTarget::HandleLocationPropertyPolicy() const { if (this->IsImported()) @@ -3221,8 +3215,7 @@ bool cmTarget::HandleLocationPropertyPolicy() const } //---------------------------------------------------------------------------- -const char *cmTarget::GetProperty(const std::string& prop, - cmProperty::ScopeType scope) const +const char *cmTarget::GetProperty(const std::string& prop) const { if (this->GetType() == INTERFACE_LIBRARY && !whiteListedInterfaceProperty(prop)) @@ -3489,10 +3482,10 @@ const char *cmTarget::GetProperty(const std::string& prop, } bool chain = false; const char *retVal = - this->Properties.GetPropertyValue(prop, scope, chain); + this->Properties.GetPropertyValue(prop, cmProperty::TARGET, chain); if (chain) { - return this->Makefile->GetProperty(prop,scope); + return this->Makefile->GetProperty(prop, cmProperty::TARGET); } return retVal; } diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 4d8022e..22462b9 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -231,8 +231,6 @@ public: void AppendProperty(const std::string& prop, const char* value, bool asString=false); 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; void CheckProperty(const std::string& prop, cmMakefile* context) const; |