diff options
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/blocks.c b/src/blocks.c index a70f5f8..615346d 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -253,29 +253,6 @@ static node_block* add_child(node_block* parent, } -// Free a node_block list and any children. -void cmark_free_nodes(node_block *e) -{ - node_block * next; - while (e != NULL) { - free_inlines(e->inline_content); - strbuf_free(&e->string_content); - if (e->tag == BLOCK_FENCED_CODE) { - strbuf_free(&e->as.code.info); - } else if (e->tag == BLOCK_DOCUMENT) { - reference_map_free(e->as.document.refmap); - } - if (e->last_child) { - // Splice children into list - e->last_child->next = e->next; - e->next = e->children; - } - next = e->next; - free(e); - e = next; - } -} - typedef struct BlockStack { struct BlockStack *previous; node_block *next_sibling; |