| 824 | |
| 825 | |
| 826 | void XMLNode::Unlink( XMLNode* child ) |
| 827 | { |
| 828 | TIXMLASSERT( child ); |
| 829 | TIXMLASSERT( child->_document == _document ); |
| 830 | TIXMLASSERT( child->_parent == this ); |
| 831 | if ( child == _firstChild ) { |
| 832 | _firstChild = _firstChild->_next; |
| 833 | } |
| 834 | if ( child == _lastChild ) { |
| 835 | _lastChild = _lastChild->_prev; |
| 836 | } |
| 837 | |
| 838 | if ( child->_prev ) { |
| 839 | child->_prev->_next = child->_next; |
| 840 | } |
| 841 | if ( child->_next ) { |
| 842 | child->_next->_prev = child->_prev; |
| 843 | } |
| 844 | child->_next = 0; |
| 845 | child->_prev = 0; |
| 846 | child->_parent = 0; |
| 847 | } |
| 848 | |
| 849 | |
| 850 | void XMLNode::DeleteChild( XMLNode* node ) |
no outgoing calls
no test coverage detected