summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-17 09:08:58 -0400
committerBrad King <brad.king@kitware.com>2013-10-16 09:22:37 -0400
commit53ded5951537cd776ed5d1db7b2002bb580583be (patch)
tree93972bf253d7e977af3bd5a382247ba14bb0d53c /Source
parent0c39a757da4988467bfb870a8cba7339c72fe1a9 (diff)
downloadcmake-53ded5951537cd776ed5d1db7b2002bb580583be.tar.gz
Drop unused builtin documentation APIs
Now that all DefineProperty documentation calls have been dropped, drop the supporting APIs.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmPropertyDefinition.cxx13
-rw-r--r--Source/cmPropertyDefinition.h9
-rw-r--r--Source/cmPropertyDefinitionMap.cxx3
-rw-r--r--Source/cmPropertyDefinitionMap.h1
-rw-r--r--Source/cmake.cxx3
-rw-r--r--Source/cmake.h3
6 files changed, 3 insertions, 29 deletions
diff --git a/Source/cmPropertyDefinition.cxx b/Source/cmPropertyDefinition.cxx
index 3aa9e94da4..abc57ce01e 100644
--- a/Source/cmPropertyDefinition.cxx
+++ b/Source/cmPropertyDefinition.cxx
@@ -12,19 +12,10 @@
#include "cmPropertyDefinition.h"
#include "cmSystemTools.h"
-cmDocumentationEntry cmPropertyDefinition::GetDocumentation() const
-{
- cmDocumentationEntry e;
- e.Name = this->Name;
- e.Brief = this->ShortDescription;
- return e;
-}
-
void cmPropertyDefinition
::DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *shortDescription,
const char *fullDescription,
- const char *sec,
bool chain)
{
this->Name = name;
@@ -38,9 +29,5 @@ void cmPropertyDefinition
{
this->FullDescription = fullDescription;
}
- if (sec)
- {
- this->DocumentationSection = sec;
- }
}
diff --git a/Source/cmPropertyDefinition.h b/Source/cmPropertyDefinition.h
index 296366dcaf..1b6a7a6a19 100644
--- a/Source/cmPropertyDefinition.h
+++ b/Source/cmPropertyDefinition.h
@@ -30,22 +30,14 @@ public:
void DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *ShortDescription,
const char *FullDescription,
- const char *DocumentationSection,
bool chained);
- /// Get the documentation string
- cmDocumentationEntry GetDocumentation() const;
-
/// Default constructor
cmPropertyDefinition() { this->Chained = false; };
/// Is the property chained?
bool IsChained() const { return this->Chained; };
- /// Get the section if any
- const std::string &GetDocumentationSection() const {
- return this->DocumentationSection; };
-
/// Get the scope
cmProperty::ScopeType GetScope() const {
return this->Scope; };
@@ -62,7 +54,6 @@ protected:
std::string Name;
std::string ShortDescription;
std::string FullDescription;
- std::string DocumentationSection;
cmProperty::ScopeType Scope;
bool Chained;
};
diff --git a/Source/cmPropertyDefinitionMap.cxx b/Source/cmPropertyDefinitionMap.cxx
index 22f8218cae..db2950461f 100644
--- a/Source/cmPropertyDefinitionMap.cxx
+++ b/Source/cmPropertyDefinitionMap.cxx
@@ -17,7 +17,6 @@ void cmPropertyDefinitionMap
::DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *ShortDescription,
const char *FullDescription,
- const char *DocumentationSection,
bool chain)
{
if (!name)
@@ -31,7 +30,7 @@ void cmPropertyDefinitionMap
{
prop = &(*this)[name];
prop->DefineProperty(name,scope,ShortDescription, FullDescription,
- DocumentationSection, chain);
+ chain);
}
}
diff --git a/Source/cmPropertyDefinitionMap.h b/Source/cmPropertyDefinitionMap.h
index 1e569ad2e3..736e243714 100644
--- a/Source/cmPropertyDefinitionMap.h
+++ b/Source/cmPropertyDefinitionMap.h
@@ -24,7 +24,6 @@ public:
void DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *ShortDescription,
const char *FullDescription,
- const char *DocumentaitonSection,
bool chain);
// has a named property been defined
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2e3c36d0ea..d11a40b601 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2376,11 +2376,10 @@ void cmake::GenerateGraphViz(const char* fileName) const
void cmake::DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *ShortDescription,
const char *FullDescription,
- bool chained, const char *docSection)
+ bool chained)
{
this->PropertyDefinitions[scope].DefineProperty(name,scope,ShortDescription,
FullDescription,
- docSection,
chained);
}
diff --git a/Source/cmake.h b/Source/cmake.h
index a5bef2490b..73e5109b17 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -330,8 +330,7 @@ class cmake
void DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *ShortDescription,
const char *FullDescription,
- bool chain = false,
- const char *variableGroup = 0);
+ bool chain = false);
// get property definition
cmPropertyDefinition *GetPropertyDefinition