| 834 | |
| 835 | |
| 836 | void 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 | |
| 860 | void XMLNode::DeleteChild( XMLNode* node ) |
no outgoing calls
no test coverage detected