From 82f29c375fb1f48d5645e3cac2daa174948f1fdc Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 18 Jan 2020 19:22:15 +0100 Subject: sfeed_web: remove unneeded optimization --- sfeed_web.c | 5 ----- 1 file changed, 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)); -- cgit v1.2.3