summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-08 13:43:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-09 13:21:37 -0800
commitd352e22ff937548fb02f79043f47d2143050c63e (patch)
treee8d938271a19a0f644117670f5c96740097bc691
parentdb596350ac569436d568790410facef14d47670f (diff)
Removed some unused code.
-rw-r--r--src/inlines.c26
1 files changed, 0 insertions, 26 deletions
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\\`&_*[]<!"