MCPcopy Create free account
hub / github.com/JayXon/Leanify / Unlink

Method Unlink

lib/tinyxml2/tinyxml2.cpp:674–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672
673
674void XMLNode::Unlink( XMLNode* child )
675{
676 TIXMLASSERT( child );
677 TIXMLASSERT( child->_document == _document );
678 if ( child == _firstChild ) {
679 _firstChild = _firstChild->_next;
680 }
681 if ( child == _lastChild ) {
682 _lastChild = _lastChild->_prev;
683 }
684
685 if ( child->_prev ) {
686 child->_prev->_next = child->_next;
687 }
688 if ( child->_next ) {
689 child->_next->_prev = child->_prev;
690 }
691 child->_parent = 0;
692}
693
694
695void XMLNode::DeleteChild( XMLNode* node )

Callers 2

~XMLNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected