From: Justin Erenkrantz Date: Mon, 17 Feb 2003 03:12:03 +0000 (+0000) Subject: Remove ap_cache_reset_output_filters. X-Git-Tag: pre_ajp_proxy~2123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d90ede0e359e94dbca37979e5e9df0ae580286bf;p=apache Remove ap_cache_reset_output_filters. That function couldn't do what it thought it did and no one calls it anyway (from what I can tell). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98688 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/cache_util.c b/modules/experimental/cache_util.c index 65aec7186d..e0f82c6d7d 100644 --- a/modules/experimental/cache_util.c +++ b/modules/experimental/cache_util.c @@ -76,25 +76,6 @@ CACHE_DECLARE(int) ap_cache_request_is_conditional(request_rec *r) return 0; } -/* remove other filters from filter stack */ -CACHE_DECLARE(void) ap_cache_reset_output_filters(request_rec *r) -{ - ap_filter_t *f = r->output_filters; - - while (f) { - if (!strcasecmp(f->frec->name, "CORE") || - !strcasecmp(f->frec->name, "CONTENT_LENGTH") || - !strcasecmp(f->frec->name, "HTTP_HEADER")) { - f = f->next; - continue; - } - else { - ap_remove_output_filter(f); - f = f->next; - } - } -} - CACHE_DECLARE(const char *)ap_cache_get_cachetype(request_rec *r, cache_server_conf *conf, const char *url) diff --git a/modules/experimental/mod_cache.h b/modules/experimental/mod_cache.h index e0d824c77d..e1be586c88 100644 --- a/modules/experimental/mod_cache.h +++ b/modules/experimental/mod_cache.h @@ -270,7 +270,6 @@ CACHE_DECLARE(char *) generate_name(apr_pool_t *p, int dirlevels, int dirlength, const char *name); CACHE_DECLARE(int) ap_cache_request_is_conditional(request_rec *r); -CACHE_DECLARE(void) ap_cache_reset_output_filters(request_rec *r); CACHE_DECLARE(const char *)ap_cache_get_cachetype(request_rec *r, cache_server_conf *conf, const char *url); CACHE_DECLARE(int) ap_cache_liststr(apr_pool_t *p, const char *list, const char *key, char **val); diff --git a/modules/experimental/mod_cache.imp b/modules/experimental/mod_cache.imp index 61255257e9..07a32f584b 100644 --- a/modules/experimental/mod_cache.imp +++ b/modules/experimental/mod_cache.imp @@ -1,6 +1,5 @@ (MODCACHE) ap_cache_request_is_conditional, - ap_cache_reset_output_filters, ap_cache_get_cachetype, ap_cache_liststr, ap_cache_tokstr,