summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-17 13:02:55 (GMT)
committerBrad King <brad.king@kitware.com>2013-09-17 13:10:31 (GMT)
commitbbfff5233d3c26a7049084dce330fc9b7983691f (patch)
treeb8bbdb08268660c2b872991ef92faccc124cf91d
parent4c4bafdeabe868677a868dba416878c097c416b3 (diff)
downloadCMake-bbfff5233d3c26a7049084dce330fc9b7983691f.zip
CMake-bbfff5233d3c26a7049084dce330fc9b7983691f.tar.gz
CMake-bbfff5233d3c26a7049084dce330fc9b7983691f.tar.bz2
Remove redundant cmake::GetIsPropertyDefined method
We already have cmake::IsPropertyDefined for the same reason.
-rw-r--r--Source/cmTarget.cxx2
-rw-r--r--Source/cmake.cxx7
-rw-r--r--Source/cmake.h2
3 files changed, 1 insertions, 10 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ce0d0f2..309ff4c 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -6823,7 +6823,7 @@ void checkPropertyConsistency(cmTarget *depender, cmTarget *dependee,
pi != props.end(); ++pi)
{
if (depender->GetMakefile()->GetCMakeInstance()
- ->GetIsPropertyDefined(pi->c_str(),
+ ->IsPropertyDefined(pi->c_str(),
cmProperty::TARGET))
{
cmOStringStream e;
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 290aff0..6bd398e 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3640,13 +3640,6 @@ void cmake::DefineProperty(const char *name, cmProperty::ScopeType scope,
chained);
}
-bool cmake::GetIsPropertyDefined(const char *name,
- cmProperty::ScopeType scope)
-{
- return this->PropertyDefinitions[scope].find(name) !=
- this->PropertyDefinitions[scope].end();
-}
-
cmPropertyDefinition *cmake
::GetPropertyDefinition(const char *name,
cmProperty::ScopeType scope)
diff --git a/Source/cmake.h b/Source/cmake.h
index a50c1ed..a3872d7 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -349,8 +349,6 @@ class cmake
bool chain = false,
const char *variableGroup = 0);
- bool GetIsPropertyDefined(const char *name, cmProperty::ScopeType scope);
-
// get property definition
cmPropertyDefinition *GetPropertyDefinition
(const char *name, cmProperty::ScopeType scope);