| 802 | |
| 803 | |
| 804 | void XMLNode::Unlink( XMLNode* child ) |
| 805 | { |
| 806 | TIXMLASSERT( child ); |
| 807 | TIXMLASSERT( child->_document == _document ); |
| 808 | TIXMLASSERT( child->_parent == this ); |
| 809 | if ( child == _firstChild ) { |
| 810 | _firstChild = _firstChild->_next; |
| 811 | } |
| 812 | if ( child == _lastChild ) { |
| 813 | _lastChild = _lastChild->_prev; |
| 814 | } |
| 815 | |
| 816 | if ( child->_prev ) { |
| 817 | child->_prev->_next = child->_next; |
| 818 | } |
| 819 | if ( child->_next ) { |
| 820 | child->_next->_prev = child->_prev; |
| 821 | } |
| 822 | child->_next = 0; |
| 823 | child->_prev = 0; |
| 824 | child->_parent = 0; |
| 825 | } |
| 826 | |
| 827 | |
| 828 | void XMLNode::DeleteChild( XMLNode* node ) |
no outgoing calls
no test coverage detected