]> granicus.if.org Git - apache/commitdiff
Remove ap_cache_reset_output_filters.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Feb 2003 03:12:03 +0000 (03:12 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Feb 2003 03:12:03 +0000 (03:12 +0000)
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

modules/experimental/cache_util.c
modules/experimental/mod_cache.h
modules/experimental/mod_cache.imp

index 65aec7186d0bcfa93cd4f0dc69337cf9be174592..e0f82c6d7d162110141652d22abf0898230b3612 100644 (file)
@@ -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)
index e0d824c77d0d50a6e728d218565ffddb46d03a59..e1be586c88a4742ad42a3b5a2878430c4e730a50 100644 (file)
@@ -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);
index 61255257e911c1e2f37d2daa714c6fd4a4e2b493..07a32f584bda7a5dfc7e2300de6ae492aab20c6b 100644 (file)
@@ -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,