| 856 | |
| 857 | |
| 858 | void 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 | |
| 882 | void XMLNode::DeleteChild( XMLNode* node ) |
no outgoing calls
no test coverage detected