| 886 | |
| 887 | |
| 888 | void XMLNode::Unlink( XMLNode* child ) |
| 889 | { |
| 890 | TIXMLASSERT( child ); |
| 891 | TIXMLASSERT( child->_document == _document ); |
| 892 | TIXMLASSERT( child->_parent == this ); |
| 893 | if ( child == _firstChild ) { |
| 894 | _firstChild = _firstChild->_next; |
| 895 | } |
| 896 | if ( child == _lastChild ) { |
| 897 | _lastChild = _lastChild->_prev; |
| 898 | } |
| 899 | |
| 900 | if ( child->_prev ) { |
| 901 | child->_prev->_next = child->_next; |
| 902 | } |
| 903 | if ( child->_next ) { |
| 904 | child->_next->_prev = child->_prev; |
| 905 | } |
| 906 | child->_next = 0; |
| 907 | child->_prev = 0; |
| 908 | child->_parent = 0; |
| 909 | } |
| 910 | |
| 911 | |
| 912 | void XMLNode::DeleteChild( XMLNode* node ) |
no outgoing calls
no test coverage detected