Skip to content

Commit

Permalink
Remove references to next/prev from clone_node.
Browse files Browse the repository at this point in the history
  • Loading branch information
nostrademons committed Mar 3, 2015
1 parent 7e9cb42 commit d4c67b7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,11 +1243,6 @@ GumboNode* clone_node(
*new_node = *node;
new_node->parent = NULL;
new_node->index_within_parent = -1;
// Fix up the next/prev pointers so that it appears directly after the node it
// was cloned from.
new_node->next = node->next;
new_node->prev = node;
node->next = new_node;
// Clear the GUMBO_INSERTION_IMPLICIT_END_TAG flag, as the cloned node may
// have a separate end tag.
new_node->parse_flags &= ~GUMBO_INSERTION_IMPLICIT_END_TAG;
Expand Down

0 comments on commit d4c67b7

Please sign in to comment.