From a05151f75aa93a16b39333ba3d30e31930d61dec Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 29 Nov 2014 18:49:46 +0100 Subject: Remove redundant code next/prev pointers are handled by cmark_node_free. --- src/inlines.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/inlines.c') diff --git a/src/inlines.c b/src/inlines.c index 3403cb0..8487bf8 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -468,12 +468,7 @@ S_insert_emph(subject *subj, delimiter_stack *opener, delimiter_stack *closer) // if closer has 0 delims, remove it and its associated inline if (closer->delim_count == 0) { // remove empty closer inline - tmp = closer->first_inline; - emph->next = tmp->next; - if (tmp->next) { - tmp->next->prev = emph; - } - cmark_node_free(tmp); + cmark_node_free(closer->first_inline); // remove closer from stack tempstack = closer->next; remove_delimiter(subj, closer); -- cgit v1.2.3