httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject svn commit: r156471 - in httpd/httpd/trunk/modules/cache: cache_util.c mod_cache.h mod_cache.imp
Date Tue, 08 Mar 2005 01:34:35 GMT
Author: striker
Date: Mon Mar  7 17:34:32 2005
New Revision: 156471

URL: http://svn.apache.org/viewcvs?view=rev&rev=156471
Log:
Remove an unused function.

* cache_util.c
* mod_cache.imp
* mod_cache.h

  (ap_cache_request_is_conditional): Removed.

Modified:
    httpd/httpd/trunk/modules/cache/cache_util.c
    httpd/httpd/trunk/modules/cache/mod_cache.h
    httpd/httpd/trunk/modules/cache/mod_cache.imp

Modified: httpd/httpd/trunk/modules/cache/cache_util.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/cache/cache_util.c?view=diff&r1=156470&r2=156471
==============================================================================
--- httpd/httpd/trunk/modules/cache/cache_util.c (original)
+++ httpd/httpd/trunk/modules/cache/cache_util.c Mon Mar  7 17:34:32 2005
@@ -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, 

Modified: httpd/httpd/trunk/modules/cache/mod_cache.h
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/cache/mod_cache.h?view=diff&r1=156470&r2=156471
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.h (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.h Mon Mar  7 17:34:32 2005
@@ -256,7 +256,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(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);

Modified: httpd/httpd/trunk/modules/cache/mod_cache.imp
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/cache/mod_cache.imp?view=diff&r1=156470&r2=156471
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.imp (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.imp Mon Mar  7 17:34:32 2005
@@ -1,5 +1,4 @@
  (MODCACHE)
- ap_cache_request_is_conditional,
  ap_cache_get_providers,
  ap_cache_liststr,
  ap_cache_tokstr,



Mime
View raw message