From: phk Date: Sat, 20 Dec 2008 23:27:00 +0000 (+0000) Subject: Remove http_GetProto(), it's unused. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96c30e71034f7f0af8a25932e067d5ff0a9d6f1e;p=varnish Remove http_GetProto(), it's unused. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3475 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index aeee3d55..81431475 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -476,7 +476,6 @@ int http_GetHdrField(const struct http *hp, const char *hdr, const char *field, char **ptr); int http_GetStatus(const struct http *hp); const char *http_GetReq(const struct http *hp); -const char *http_GetProto(const struct http *hp); int http_HdrIs(const struct http *hp, const char *hdr, const char *val); int http_DissectRequest(struct sess *sp); int http_DissectResponse(struct worker *w, const struct http_conn *htc, diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 868b656d..fbafdbdb 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -302,14 +302,6 @@ http_GetStatus(const struct http *hp) return (hp->status); } -const char * -http_GetProto(const struct http *hp) -{ - - Tcheck(hp->hd[HTTP_HDR_PROTO]); - return (hp->hd[HTTP_HDR_PROTO].b); -} - const char * http_GetReq(const struct http *hp) {