diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-01-18 19:22:15 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-01-18 20:09:47 +0100 |
commit | 82f29c375fb1f48d5645e3cac2daa174948f1fdc (patch) | |
tree | 8e277ec8dd07dd49c423213523e3a2c69ba4370a | |
parent | 85df1e9f71f204d15b8cfd8801fab7cec77f1a0c (diff) |
sfeed_web: remove unneeded optimization
-rw-r--r-- | sfeed_web.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sfeed_web.c b/sfeed_web.c index 676e211..d967e91 100644 --- a/sfeed_web.c +++ b/sfeed_web.c @@ -30,8 +30,6 @@ static void xmltagstart(XMLParser *p, const char *t, size_t tl) { isbase = islink = isfeedlink = 0; - if (tl != 4) /* optimization */ - return; if (!strcasecmp(t, "base")) isbase = 1; @@ -59,9 +57,6 @@ static void xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl, const char *v, size_t vl) { - if (nl != 4) /* optimization */ - return; - if (isbase) { if (!strcasecmp(n, "href")) strlcpy(basehref, v, sizeof(basehref)); |