aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-09-15 21:18:23 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-09-15 21:18:23 -0300
commit2e5599538392cbff059a9dd0c1b6334e4727176a (patch)
treebf957ba649f6a10985c379b4299872c6bf32d5e0 /src
parent2fa74d3b3732e766380511df501748fa9cad69f8 (diff)
downloadblogc-2e5599538392cbff059a9dd0c1b6334e4727176a.tar.gz
blogc-2e5599538392cbff059a9dd0c1b6334e4727176a.tar.bz2
blogc-2e5599538392cbff059a9dd0c1b6334e4727176a.zip
content-parser: removed some uneeded code
Diffstat (limited to 'src')
-rw-r--r--src/content-parser.c14
1 files changed, 0 insertions, 14 deletions
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;
}