MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / Unlink

Method Unlink

native/thirdpart/tinyxml2/tinyxml2.cpp:858–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856
857
858void XMLNode::Unlink( XMLNode* child )
859{
860 TIXMLASSERT( child );
861 TIXMLASSERT( child->_document == _document );
862 TIXMLASSERT( child->_parent == this );
863 if ( child == _firstChild ) {
864 _firstChild = _firstChild->_next;
865 }
866 if ( child == _lastChild ) {
867 _lastChild = _lastChild->_prev;
868 }
869
870 if ( child->_prev ) {
871 child->_prev->_next = child->_next;
872 }
873 if ( child->_next ) {
874 child->_next->_prev = child->_prev;
875 }
876 child->_next = 0;
877 child->_prev = 0;
878 child->_parent = 0;
879}
880
881
882void XMLNode::DeleteChild( XMLNode* node )

Callers 2

~XMLNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected