From: Sander Striker Date: Tue, 8 Mar 2005 01:34:32 +0000 (+0000) Subject: Remove an unused function. X-Git-Tag: 2.1.4~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8c8263f9c8dc40cb6629618b23734fb3f8ed3d1;p=apache Remove an unused function. * cache_util.c * mod_cache.imp * mod_cache.h (ap_cache_request_is_conditional): Removed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@156471 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index 7ad187ac94..cb27e653c9 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -24,17 +24,6 @@ extern module AP_MODULE_DECLARE_DATA cache_module; -/* return true if the request is conditional */ -CACHE_DECLARE(int) ap_cache_request_is_conditional(apr_table_t *table) -{ - if (apr_table_get(table, "If-Match") || - apr_table_get(table, "If-None-Match") || - apr_table_get(table, "If-Modified-Since") || - apr_table_get(table, "If-Unmodified-Since")) { - return 1; - } - return 0; -} CACHE_DECLARE(cache_provider_list *)ap_cache_get_providers(request_rec *r, cache_server_conf *conf, diff --git a/modules/cache/mod_cache.h b/modules/cache/mod_cache.h index 554d0a7ebf..5e72e90305 100644 --- a/modules/cache/mod_cache.h +++ b/modules/cache/mod_cache.h @@ -256,7 +256,6 @@ CACHE_DECLARE(void) ap_cache_usec2hex(apr_time_t j, char *y); CACHE_DECLARE(char *) generate_name(apr_pool_t *p, int dirlevels, int dirlength, const char *name); -CACHE_DECLARE(int) ap_cache_request_is_conditional(apr_table_t *table); CACHE_DECLARE(cache_provider_list *)ap_cache_get_providers(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/cache/mod_cache.imp b/modules/cache/mod_cache.imp index 6bf4db08af..593bc354a0 100644 --- a/modules/cache/mod_cache.imp +++ b/modules/cache/mod_cache.imp @@ -1,5 +1,4 @@ (MODCACHE) - ap_cache_request_is_conditional, ap_cache_get_providers, ap_cache_liststr, ap_cache_tokstr,