| 621 | |
| 622 | |
| 623 | void XMLNode::Unlink( XMLNode* child ) { |
| 624 | TIXMLASSERT( child ); |
| 625 | TIXMLASSERT( child->_document == _document ); |
| 626 | if ( child == _firstChild ) { |
| 627 | _firstChild = _firstChild->_next; |
| 628 | } |
| 629 | if ( child == _lastChild ) { |
| 630 | _lastChild = _lastChild->_prev; |
| 631 | } |
| 632 | |
| 633 | if ( child->_prev ) { |
| 634 | child->_prev->_next = child->_next; |
| 635 | } |
| 636 | if ( child->_next ) { |
| 637 | child->_next->_prev = child->_prev; |
| 638 | } |
| 639 | child->_parent = 0; |
| 640 | } |
| 641 | |
| 642 | |
| 643 | void XMLNode::DeleteChild( XMLNode* node ) { |
no outgoing calls
no test coverage detected