MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / remove_node

Function remove_node

Source/ThirdParty/pugixml/pugixml.cpp:704–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702 }
703
704 inline void remove_node(xml_node_struct* node)
705 {
706 xml_node_struct* parent = node->parent;
707
708 if (node->next_sibling)
709 node->next_sibling->prev_sibling_c = node->prev_sibling_c;
710 else
711 parent->first_child->prev_sibling_c = node->prev_sibling_c;
712
713 if (node->prev_sibling_c->next_sibling)
714 node->prev_sibling_c->next_sibling = node->next_sibling;
715 else
716 parent->first_child = node->next_sibling;
717
718 node->parent = 0;
719 node->prev_sibling_c = 0;
720 node->next_sibling = 0;
721 }
722
723 inline void append_attribute(xml_attribute_struct* attr, xml_node_struct* node)
724 {

Callers 5

append_moveMethod · 0.85
prepend_moveMethod · 0.85
insert_move_afterMethod · 0.85
insert_move_beforeMethod · 0.85
remove_childMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected