| 672 | |
| 673 | |
| 674 | void XMLNode::Unlink( XMLNode* child ) |
| 675 | { |
| 676 | TIXMLASSERT( child ); |
| 677 | TIXMLASSERT( child->_document == _document ); |
| 678 | if ( child == _firstChild ) { |
| 679 | _firstChild = _firstChild->_next; |
| 680 | } |
| 681 | if ( child == _lastChild ) { |
| 682 | _lastChild = _lastChild->_prev; |
| 683 | } |
| 684 | |
| 685 | if ( child->_prev ) { |
| 686 | child->_prev->_next = child->_next; |
| 687 | } |
| 688 | if ( child->_next ) { |
| 689 | child->_next->_prev = child->_prev; |
| 690 | } |
| 691 | child->_parent = 0; |
| 692 | } |
| 693 | |
| 694 | |
| 695 | void XMLNode::DeleteChild( XMLNode* node ) |
no outgoing calls
no test coverage detected