summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-29 18:49:46 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-29 21:49:14 +0100
commita05151f75aa93a16b39333ba3d30e31930d61dec (patch)
tree0b6ba0161fc3915e69849b44440d77d63032b36b
parent51a0aa703209b831dce503b88655951b24957b51 (diff)
Remove redundant code
next/prev pointers are handled by cmark_node_free.
-rw-r--r--src/inlines.c7
1 files changed, 1 insertions, 6 deletions
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);