summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-04-10 17:05:13 +0200
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:13 -0700
commit9374f5b21a1770a42636da0171582aadce84d9ff (patch)
tree34fd164b1391db6065061dee120bae629158f1d6
parentcfd3e7cab2f5dbe267a937f5cafa098d191b63f5 (diff)
downloadexternal_parameter-framework-9374f5b21a1770a42636da0171582aadce84d9ff.zip
external_parameter-framework-9374f5b21a1770a42636da0171582aadce84d9ff.tar.gz
external_parameter-framework-9374f5b21a1770a42636da0171582aadce84d9ff.tar.bz2
Remove unused CElement::getLastChild method
Signed-off-by: David Wagner <david.wagner@intel.com>
-rw-r--r--parameter/Element.cpp9
-rw-r--r--parameter/Element.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/parameter/Element.cpp b/parameter/Element.cpp
index f01217f..9641e92 100644
--- a/parameter/Element.cpp
+++ b/parameter/Element.cpp
@@ -401,15 +401,6 @@ const CElement* CElement::getChild(size_t uiIndex) const
return _childArray[uiIndex];
}
-CElement* CElement::getLastChild()
-{
- size_t uiNbChildren = getNbChildren();
-
- assert(uiNbChildren);
-
- return _childArray[uiNbChildren - 1];
-}
-
CElement* CElement::createChild(const CXmlElement& childElement,
CXmlSerializingContext& serializingContext)
{
diff --git a/parameter/Element.h b/parameter/Element.h
index c93e2c4..ebb33a3 100644
--- a/parameter/Element.h
+++ b/parameter/Element.h
@@ -151,7 +151,6 @@ protected:
static void appendTitle(std::string& strTo, const std::string& strTitle);
// Hierarchy
- CElement* getLastChild();
CElement* getParent();
CElement* findAscendantOfKind(const std::string& strKind);