MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / Unlink

Method Unlink

Source/ThirdParty/tinyxml2/tinyxml2.cpp:773–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771
772
773void XMLNode::Unlink( XMLNode* child )
774{
775 TIXMLASSERT( child );
776 TIXMLASSERT( child->_document == _document );
777 TIXMLASSERT( child->_parent == this );
778 if ( child == _firstChild ) {
779 _firstChild = _firstChild->_next;
780 }
781 if ( child == _lastChild ) {
782 _lastChild = _lastChild->_prev;
783 }
784
785 if ( child->_prev ) {
786 child->_prev->_next = child->_next;
787 }
788 if ( child->_next ) {
789 child->_next->_prev = child->_prev;
790 }
791 child->_parent = 0;
792}
793
794
795void XMLNode::DeleteChild( XMLNode* node )

Callers 2

~XMLNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected