Skip to content

Commit 48ba99d

Browse files
committed
Removed deprectaed macros mess in XmlElement
1 parent 500226b commit 48ba99d

1 file changed

Lines changed: 0 additions & 56 deletions

File tree

modules/yup_core/xml/yup_XmlElement.h

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -810,60 +810,4 @@ class YUP_API XmlElement
810810
YUP_LEAK_DETECTOR (XmlElement)
811811
};
812812

813-
//==============================================================================
814-
#ifndef DOXYGEN
815-
816-
/** DEPRECATED: A handy macro to make it easy to iterate all the child elements in an XmlElement.
817-
818-
New code should avoid this macro, and instead use getChildIterator directly.
819-
820-
The parentXmlElement should be a reference to the parent XML, and the childElementVariableName
821-
will be the name of a pointer to each child element.
822-
823-
E.g. @code
824-
XmlElement* myParentXml = createSomeKindOfXmlDocument();
825-
826-
forEachXmlChildElement (*myParentXml, child)
827-
{
828-
if (child->hasTagName ("FOO"))
829-
doSomethingWithXmlElement (child);
830-
}
831-
832-
@endcode
833-
834-
@see forEachXmlChildElementWithTagName
835-
*/
836-
#define forEachXmlChildElement(parentXmlElement, childElementVariableName) \
837-
for (auto*(childElementVariableName) : ((parentXmlElement).macroBasedForLoop(), (parentXmlElement).getChildIterator()))
838-
839-
/** DEPRECATED: A macro that makes it easy to iterate all the child elements of an XmlElement
840-
which have a specified tag.
841-
842-
New code should avoid this macro, and instead use getChildWithTagNameIterator directly.
843-
844-
This does the same job as the forEachXmlChildElement macro, but only for those
845-
elements that have a particular tag name.
846-
847-
The parentXmlElement should be a reference to the parent XML, and the childElementVariableName
848-
will be the name of a pointer to each child element. The requiredTagName is the
849-
tag name to match.
850-
851-
E.g. @code
852-
XmlElement* myParentXml = createSomeKindOfXmlDocument();
853-
854-
forEachXmlChildElementWithTagName (*myParentXml, child, "MYTAG")
855-
{
856-
// the child object is now guaranteed to be a <MYTAG> element..
857-
doSomethingWithMYTAGElement (child);
858-
}
859-
860-
@endcode
861-
862-
@see forEachXmlChildElement
863-
*/
864-
#define forEachXmlChildElementWithTagName(parentXmlElement, childElementVariableName, requiredTagName) \
865-
for (auto*(childElementVariableName) : ((parentXmlElement).macroBasedForLoop(), (parentXmlElement).getChildWithTagNameIterator ((requiredTagName))))
866-
867-
#endif
868-
869813
} // namespace yup

0 commit comments

Comments
 (0)