From 5d31c4b3a88f23371b70f7f9306a110edd9d16ac Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 24 Jun 2007 09:23:38 +0000 Subject: [PATCH] Remove http_IsBodyless, it is no longer used. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1534 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache.h | 1 - varnish-cache/bin/varnishd/cache_http.c | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 40422308..d9163574 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -405,7 +405,6 @@ void http_Setup(struct http *ht, void *space, unsigned len); int http_GetHdr(struct http *hp, const char *hdr, char **ptr); int http_GetHdrField(struct http *hp, const char *hdr, const char *field, char **ptr); int http_GetStatus(struct http *hp); -int http_IsBodyless(struct http *hp); int http_HdrIs(struct http *hp, const char *hdr, const char *val); int http_GetTail(struct http *hp, unsigned len, char **b, char **e); int http_Read(struct http *hp, int fd, void *b, unsigned len); diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 85f25f00..61c467e3 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -383,21 +383,6 @@ http_GetStatus(struct http *hp) NULL /* XXX */, 10)); } -/*--------------------------------------------------------------------- - * All 1xx (informational), 204 (no content), and 304 (not modified) - * responses MUST NOT include a message-body. - */ - -int -http_IsBodyless(struct http *hp) -{ - int status; - - status = http_GetStatus(hp); - return (status >= 100 && status < 200) - || status == 204 || status == 304; -} - /*-------------------------------------------------------------------- * Dissect the headers of the HTTP protocol message. * Detect conditionals (headers which start with '^[Ii][Ff]-') -- 2.39.5