summaryrefslogtreecommitdiff
path: root/src/cmark.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-17 21:09:26 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-17 21:43:46 -0800
commit499970acbdaef4dcd51a2e629edfddee520bba3a (patch)
tree45a888ab63115f992e077cbcccff23951ab29a6e /src/cmark.c
parent463d64219b2f47c9bfb50d05a7f4d2b2a4293a97 (diff)
Remove old node_block and node_inl
Diffstat (limited to 'src/cmark.c')
-rw-r--r--src/cmark.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/cmark.c b/src/cmark.c
index 7cc8e5c..fa9b5c8 100644
--- a/src/cmark.c
+++ b/src/cmark.c
@@ -8,60 +8,6 @@
#include "buffer.h"
#include "ast.h"
-// AST traversal and manipulation functions
-
-cmark_node_block *cmark_block_next(cmark_node_block *current)
-{
- return current->next;
-}
-
-cmark_node_block *cmark_block_previous(cmark_node_block *current)
-{
- return current->prev;
-}
-
-cmark_node_block *cmark_block_parent(cmark_node_block *current)
-{
- return current->parent;
-}
-
-cmark_node_block *cmark_block_children(cmark_node_block *current)
-{
- return current->children;
-}
-
-void cmark_block_insert_before(cmark_node_block *new, cmark_node_block *current)
-{
- // Find last node in new:
- cmark_node_block *new_last = new;
- while (new_last->next) {
- new_last = new_last->next;
- }
- new_last->next = current;
- current->prev = new_last;
- if (current->prev) {
- current->prev->next = new;
- new->prev = current->prev;
- }
-}
-
-void cmark_block_insert_after(cmark_node_block *current, cmark_node_block *new)
-{
- // Find last node in new:
- cmark_node_block *new_last = new;
- while (new_last->next) {
- new_last = new_last->next;
- }
- if (current->next) {
- new_last->next = current->next;
- current->next->prev = new_last;
- }
- current->next = new;
- new->prev = current;
-}
-
-/* * */
-
unsigned char *cmark_markdown_to_html(unsigned char *text, int len)
{
cmark_node *blocks;