From d52ee1bfecc6e76caa280f54032e829cc22392cf Mon Sep 17 00:00:00 2001
From: Jules Clero <julesx.clero@intel.com>
Date: Wed, 11 Mar 2015 10:57:12 +0100
Subject: Remove dead getRoot member function from element

Signed-off-by: Jules Clero <julesx.clero@intel.com>
---
 parameter/Element.cpp | 18 ------------------
 parameter/Element.h   |  2 --
 2 files changed, 20 deletions(-)

diff --git a/parameter/Element.cpp b/parameter/Element.cpp
index 4ccf149..0175084 100755
--- a/parameter/Element.cpp
+++ b/parameter/Element.cpp
@@ -682,24 +682,6 @@ const CElement* CElement::findChildOfKind(const string& strKind) const
     return NULL;
 }
 
-CElement* CElement::getRoot()
-{
-    if (!_pParent) {
-
-        return this;
-    }
-    return _pParent->getRoot();
-}
-
-const CElement* CElement::getRoot() const
-{
-    if (!_pParent) {
-
-        return this;
-    }
-    return _pParent->getRoot();
-}
-
 string CElement::getPath() const
 {
     // Take out root element from the path
diff --git a/parameter/Element.h b/parameter/Element.h
index 4636dbd..fb5faee 100644
--- a/parameter/Element.h
+++ b/parameter/Element.h
@@ -135,8 +135,6 @@ protected:
     CElement* getLastChild();
     CElement* getParent();
     CElement* findAscendantOfKind(const std::string& strKind);
-    CElement* getRoot();
-    const CElement* getRoot() const;
 
     /**
      * Creates a child CElement from a child XML Element
-- 
cgit v1.1