From 2e5599538392cbff059a9dd0c1b6334e4727176a Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 15 Sep 2015 21:18:23 -0300 Subject: content-parser: removed some uneeded code --- src/content-parser.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/content-parser.c') diff --git a/src/content-parser.c b/src/content-parser.c index 9052aec..511d09e 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -212,10 +212,6 @@ blogc_content_parse_inline(const char *src) break; case ']': - if (state == LINK_CLOSED && (open_code || open_code_double)) { - b_string_append_c(rv, c); - break; - } if (state == LINK_AUTO) { end = current; state = LINK_AUTO_CLOSE; @@ -246,10 +242,6 @@ blogc_content_parse_inline(const char *src) break; case '(': - if (state == LINK_CLOSED && (open_code || open_code_double)) { - b_string_append_c(rv, c); - break; - } if (state == LINK_TEXT_CLOSE) { state = LINK_URL; start = current + 1; @@ -260,10 +252,6 @@ blogc_content_parse_inline(const char *src) break; case ')': - if (state == LINK_CLOSED && (open_code || open_code_double)) { - b_string_append_c(rv, c); - break; - } if (state == LINK_URL) { state = LINK_CLOSED; tmp = b_strndup(src + start, current - start); @@ -467,8 +455,6 @@ blogc_content_parse(const char *src, size_t *end_excerpt) if (c == '.') break; if (c == '\n' || c == '\r') { - //*end_excerpt = eend; - //state = CONTENT_START_LINE; state = CONTENT_EXCERPT_END; break; } -- cgit v1.2.3-18-g5258