From d352e22ff937548fb02f79043f47d2143050c63e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 8 Nov 2014 13:43:56 -0800 Subject: Removed some unused code. --- src/inlines.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/inlines.c') diff --git a/src/inlines.c b/src/inlines.c index 069544b..7a7ca02 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -26,11 +26,9 @@ typedef struct Subject { opener_stack *openers; } subject; -static node_inl *parse_chunk_inlines(chunk *chunk, reference_map *refmap); static node_inl *parse_inlines_from_subject(subject* subj); static int parse_inline(subject* subj, node_inl ** last); -static void subject_from_chunk(subject *e, chunk *chunk, reference_map *refmap); static void subject_from_buf(subject *e, strbuf *buffer, reference_map *refmap); static int subject_find_special_char(subject *subj); @@ -62,11 +60,6 @@ static inline node_inl *make_link_(node_inl *label, unsigned char *url, unsigned return e; } -inline static node_inl* make_ref_link(node_inl* label, reference *ref) -{ - return make_link_(label, bufdup(ref->url), bufdup(ref->title)); -} - inline static node_inl* make_autolink(node_inl* label, chunk url, int is_email) { return make_link_(label, clean_autolink(&url, is_email), NULL); @@ -194,18 +187,6 @@ static void subject_from_buf(subject *e, strbuf *buffer, reference_map *refmap) chunk_rtrim(&e->input); } -static void subject_from_chunk(subject *e, chunk *chunk, reference_map *refmap) -{ - e->input.data = chunk->data; - e->input.len = chunk->len; - e->input.alloc = 0; - e->pos = 0; - e->refmap = refmap; - e->openers = NULL; - - chunk_rtrim(&e->input); -} - inline static int isbacktick(int c) { return (c == '`'); @@ -803,13 +784,6 @@ extern node_inl* parse_inlines_from_subject(subject* subj) return first; } -node_inl *parse_chunk_inlines(chunk *chunk, reference_map *refmap) -{ - subject subj; - subject_from_chunk(&subj, chunk, refmap); - return parse_inlines_from_subject(&subj); -} - static int subject_find_special_char(subject *subj) { // "\n\\`&_*[]