MCPcopy Create free account
hub / github.com/crossuo/crossuo / Unlink

Method Unlink

external/tinyxml2.cpp:836–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834
835
836void XMLNode::Unlink( XMLNode* child )
837{
838 TIXMLASSERT( child );
839 TIXMLASSERT( child->_document == _document );
840 TIXMLASSERT( child->_parent == this );
841 if ( child == _firstChild ) {
842 _firstChild = _firstChild->_next;
843 }
844 if ( child == _lastChild ) {
845 _lastChild = _lastChild->_prev;
846 }
847
848 if ( child->_prev ) {
849 child->_prev->_next = child->_next;
850 }
851 if ( child->_next ) {
852 child->_next->_prev = child->_prev;
853 }
854 child->_next = 0;
855 child->_prev = 0;
856 child->_parent = 0;
857}
858
859
860void XMLNode::DeleteChild( XMLNode* node )

Callers 2

~XMLNodeMethod · 0.45
InsertChildPreambleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected