From: Henrik Nordstrom Date: Fri, 16 Sep 2011 09:01:55 +0000 (-0600) Subject: Remove duplicated code in gopher fix X-Git-Tag: SQUID_3_1_16~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a83a2c029ba5457f35f7c2b2ad1882bb4042aa91;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 312cc8ce55..eedcb9678c 100644 --- a/src/gopher.cc +++ b/src/gopher.cc @@ -462,14 +462,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 */ - xmemcpy(gopherState->buf + gopherState->len, pos, llen); - gopherState->len += llen; - break; - } if (gopherState->len != 0) { /* there is something left from last tx. */ xmemcpy(line, gopherState->buf, gopherState->len);