--------------------- PatchSet 8931 Date: 2007/02/18 17:28:30 Author: hno Branch: storework Tag: (none) Log: Kill httpPacked304Reply, no longer used. Members: src/HttpReply.c:1.19.2.2->1.19.2.3 Index: squid/src/HttpReply.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/HttpReply.c,v retrieving revision 1.19.2.2 retrieving revision 1.19.2.3 diff -u -r1.19.2.2 -r1.19.2.3 --- squid/src/HttpReply.c 17 Feb 2007 05:21:55 -0000 1.19.2.2 +++ squid/src/HttpReply.c 18 Feb 2007 17:28:30 -0000 1.19.2.3 @@ -1,6 +1,6 @@ /* - * $Id: HttpReply.c,v 1.19.2.2 2007/02/17 05:21:55 adri Exp $ + * $Id: HttpReply.c,v 1.19.2.3 2007/02/18 17:28:30 hno Exp $ * * DEBUG: section 58 HTTP Reply (Response) * AUTHOR: Alex Rousskov @@ -213,30 +213,6 @@ } -MemBuf -httpPacked304Reply(const HttpReply * rep) -{ - static const http_hdr_type ImsEntries[] = - {HDR_DATE, HDR_CONTENT_TYPE, HDR_EXPIRES, HDR_LAST_MODIFIED, HDR_ETAG, /* eof */ HDR_OTHER}; - int t; - MemBuf mb; - Packer p; - HttpHeaderEntry *e; - assert(rep); - - fatal("This shouldn't be called!\n"); - - memBufDefInit(&mb); - packerToMemInit(&p, &mb); - memBufPrintf(&mb, "%s", "HTTP/1.0 304 Not Modified\r\n"); - for (t = 0; ImsEntries[t] != HDR_OTHER; ++t) - if ((e = httpHeaderFindEntry(&rep->header, ImsEntries[t]))) - httpHeaderEntryPackInto(e, &p); - memBufAppend(&mb, "\r\n", 2); - packerClean(&p); - return mb; -} - void httpReplySetHeaders(HttpReply * reply, http_version_t ver, http_status status, const char *reason, const char *ctype, squid_off_t clen, time_t lmt, time_t expires)