From: Justin Erenkrantz Date: Mon, 17 Feb 2003 03:12:03 +0000 (+0000) Subject: Remove ap_cache_reset_output_filters. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d692dbd1ef30b9d82f5e6e6edf33f5db475b36;p=thirdparty%2Fapache%2Fhttpd.git 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 65aec7186d0..e0f82c6d7d1 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 e0d824c77d0..e1be586c88a 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 61255257e91..07a32f584bd 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,