Removed some unused code.
This commit is contained in:
Родитель
db596350ac
Коммит
d352e22ff9
|
@ -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\\`&_*[]<!"
|
||||
|
|
Загрузка…
Ссылка в новой задаче