summaryrefslogtreecommitdiff
path: root/src/node.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-18 00:43:51 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-17 21:43:47 -0800
commit9fe3b46ddb58ebcd2a94e59e5687fd439d0ead32 (patch)
treea5499a9478160fcbfdf720808c278f5e26b21787 /src/node.c
parent59fd5633da5395cbd3627af4a2ab855dc43ce1e0 (diff)
Store link labels as children in tree structure
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/node.c b/src/node.c
index ed58e90..88c2106 100644
--- a/src/node.c
+++ b/src/node.c
@@ -75,7 +75,6 @@ S_can_contain(cmark_node *node, cmark_node *child)
case CMARK_NODE_STRONG:
case CMARK_NODE_LINK:
case CMARK_NODE_IMAGE:
- case CMARK_NODE_LINK_LABEL:
return S_is_inline(child);
default:
@@ -233,22 +232,6 @@ cmark_node_append_child(cmark_node *node, cmark_node *child)
return 1;
}
-// Utility function used by cmark_free_nodes
-static void splice_into_list(cmark_node* e, cmark_node* children) {
- cmark_node * tmp;
- if (children) {
- tmp = children;
- // Find last child
- while (tmp->next) {
- tmp = tmp->next;
- }
- // Splice children into list
- tmp->next = e->next;
- e->next = children;
- }
- return ;
-}
-
int
cmark_node_check(cmark_node *node) {
cmark_node *cur = node;
@@ -326,7 +309,6 @@ void cmark_free_nodes(cmark_node *e)
case NODE_IMAGE:
free(e->as.link.url);
free(e->as.link.title);
- splice_into_list(e, e->as.link.label);
break;
default:
break;