From a2bb3c8022c62e457e4745cd92926f390266b4d7 Mon Sep 17 00:00:00 2001 From: Graham Leggett <minfrin@apache.org> Date: Sun, 4 Oct 2009 13:21:25 +0000 Subject: [PATCH] Remove the server_rec wired into uri_meets_conditions, the debugging statements that required it were removed in the past, so wiring through server_rec is no longer necessary. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821538 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/cache_util.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index ae1d53e4f5..2a9a2d30e1 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -26,12 +26,9 @@ extern module AP_MODULE_DECLARE_DATA cache_module; /* Determine if "url" matches the hostname, scheme and port and path * in "filter". All but the path comparisons are case-insensitive. - * Note: the 's' parameters is not used currently, but needed for - * logging during debugging. */ -static int uri_meets_conditions(const server_rec * const s, - const apr_uri_t filter, const int pathlen, const apr_uri_t url) { - (void) s; +static int uri_meets_conditions(const apr_uri_t filter, const int pathlen, + const apr_uri_t url) { /* Scheme, hostname port and local part. The filter URI and the * URI we test may have the following shapes: @@ -130,7 +127,7 @@ CACHE_DECLARE(cache_provider_list *)ap_cache_get_providers(request_rec *r, for (i = 0; i < conf->cacheenable->nelts; i++) { struct cache_enable *ent = (struct cache_enable *)conf->cacheenable->elts; - if (uri_meets_conditions(r->server,ent[i].url, ent[i].pathlen, uri)) { + if (uri_meets_conditions(ent[i].url, ent[i].pathlen, uri)) { /* Fetch from global config and add to the list. */ cache_provider *provider; provider = ap_lookup_provider(CACHE_PROVIDER_GROUP, ent[i].type, @@ -167,7 +164,7 @@ CACHE_DECLARE(cache_provider_list *)ap_cache_get_providers(request_rec *r, for (i = 0; i < conf->cachedisable->nelts; i++) { struct cache_disable *ent = (struct cache_disable *)conf->cachedisable->elts; - if (uri_meets_conditions(r->server,ent[i].url, ent[i].pathlen, uri)) { + if (uri_meets_conditions(ent[i].url, ent[i].pathlen, uri)) { /* Stop searching now. */ return NULL; } -- 2.40.0