From 6dc7d2c6981b12424612bf7662a5ea3c320d0a84 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 18 Nov 2017 22:05:42 +0100 Subject: [PATCH] Remove unused XmlElement function which breaks clang build --- source/modules/water/xml/XmlElement.h | 38 --------------------------- 1 file changed, 38 deletions(-) diff --git a/source/modules/water/xml/XmlElement.h b/source/modules/water/xml/XmlElement.h index d05bf5a94..b2c8972db 100644 --- a/source/modules/water/xml/XmlElement.h +++ b/source/modules/water/xml/XmlElement.h @@ -613,44 +613,6 @@ public: */ XmlElement* findParentElementOf (const XmlElement* childToSearchFor) noexcept; - //============================================================================== - /** Sorts the child elements using a comparator. - - This will use a comparator object to sort the elements into order. The object - passed must have a method of the form: - @code - int compareElements (const XmlElement* first, const XmlElement* second); - @endcode - - ..and this method must return: - - a value of < 0 if the first comes before the second - - a value of 0 if the two objects are equivalent - - a value of > 0 if the second comes before the first - - To improve performance, the compareElements() method can be declared as static or const. - - @param comparator the comparator to use for comparing elements. - @param retainOrderOfEquivalentItems if this is true, then items which the comparator - says are equivalent will be kept in the order in which they - currently appear in the array. This is slower to perform, but - may be important in some cases. If it's false, a faster algorithm - is used, but equivalent elements may be rearranged. - */ - template - void sortChildElements (ElementComparator& comparator, - bool retainOrderOfEquivalentItems = false) - { - const int num = getNumChildElements(); - - if (num > 1) - { - HeapBlock elems ((size_t) num); - getChildElementsAsArray (elems); - sortArray (comparator, (XmlElement**) elems, 0, num - 1, retainOrderOfEquivalentItems); - reorderChildElements (elems, num); - } - } - //============================================================================== /** Returns true if this element is a section of text.