diff options
Diffstat (limited to 'src/domhelpers.cpp')
-rw-r--r-- | src/domhelpers.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/domhelpers.cpp b/src/domhelpers.cpp index 038e2df..4836d17 100644 --- a/src/domhelpers.cpp +++ b/src/domhelpers.cpp @@ -191,20 +191,6 @@ DOM::Element DOMHelpers::findChildElement(const DOM::Node& parent, const string& return DOM::Element(); } -DOM::Element DOMHelpers::findDescendantElement(const DOM::Node& parent, const string& name) -{ - DOM::Node child = parent.getFirstChild(); - while(child != NULL) - { - if(isElement(child, name)) - return (DOM::Element&)child; - - child = child.getNextSibling(); - } - - return DOM::Element(); -} - bool DOMHelpers::hasAncestor(const DOM::Node& ancestor, const DOM::Node& node) { DOM::Node n = node; |