From: Henrik Nordstrom Date: Wed, 31 Aug 2011 11:50:14 +0000 (+0200) Subject: Remove duplicated code in gopher fix X-Git-Tag: take08~33^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=780e3e4bc14dba2e76d49cce23483840caa14e31;p=thirdparty%2Fsquid.git Remove duplicated code in gopher fix harmless copy-paste error when patch was forward-ported from squid-2 --- diff --git a/src/gopher.cc b/src/gopher.cc index f15b387a23..52ef9adfdf 100644 --- a/src/gopher.cc +++ b/src/gopher.cc @@ -464,14 +464,6 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len) gopherState->len += llen; break; } - if (!lpos) { - /* there is no complete line in inbuf */ - /* copy it to temp buffer */ - /* note: llen is adjusted above */ - memcpy(gopherState->buf + gopherState->len, pos, llen); - gopherState->len += llen; - break; - } if (gopherState->len != 0) { /* there is something left from last tx. */ memcpy(line, gopherState->buf, gopherState->len);