summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-09 14:04:23 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-09 15:06:13 (GMT)
commit2e75bf672b0d8e58972f9445a0ef475d21dbe87f (patch)
tree900dc78bc8365898ce7dc4d57e2e898e4ba46ded
parent890efcb6077d01629ca29f9f54c90a1f0663033a (diff)
downloadCMake-2e75bf672b0d8e58972f9445a0ef475d21dbe87f.zip
CMake-2e75bf672b0d8e58972f9445a0ef475d21dbe87f.tar.gz
CMake-2e75bf672b0d8e58972f9445a0ef475d21dbe87f.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.
-rw-r--r--Source/cmTarget.cxx13
-rw-r--r--Source/cmTarget.h1
2 files changed, 3 insertions, 11 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index e2a568b..9eb1f63 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2624,12 +2624,6 @@ const char* cmTarget::GetFeature(const char* feature, const char* config) const
}
//----------------------------------------------------------------------------
-const char *cmTarget::GetProperty(const char* prop) const
-{
- return this->GetProperty(prop, cmProperty::TARGET);
-}
-
-//----------------------------------------------------------------------------
bool cmTarget::HandleLocationPropertyPolicy() const
{
if (this->IsImported())
@@ -2667,8 +2661,7 @@ bool cmTarget::HandleLocationPropertyPolicy() const
}
//----------------------------------------------------------------------------
-const char *cmTarget::GetProperty(const char* prop,
- cmProperty::ScopeType scope) const
+const char *cmTarget::GetProperty(const char* prop) const
{
if(!prop)
{
@@ -2857,10 +2850,10 @@ const char *cmTarget::GetProperty(const char* 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 0e9d682..a23c601 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -257,7 +257,6 @@ public:
void SetProperty(const char *prop, const char *value);
void AppendProperty(const char* prop, const char* value,bool asString=false);
const char *GetProperty(const char *prop) const;
- const char *GetProperty(const char *prop, cmProperty::ScopeType scope) const;
bool GetPropertyAsBool(const char *prop) const;
void CheckProperty(const char* prop, cmMakefile* context) const;