You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2005/08/12 08:38:04 UTC

svn commit: r232218 - /httpd/httpd/trunk/support/htcacheclean.c

Author: jorton
Date: Thu Aug 11 23:38:01 2005
New Revision: 232218

URL: http://svn.apache.org/viewcvs?rev=232218&view=rev
Log:
* support/htcacheclean.c (directory_empty): Remove unused function.

Modified:
    httpd/httpd/trunk/support/htcacheclean.c

Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/support/htcacheclean.c?rev=232218&r1=232217&r2=232218&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Thu Aug 11 23:38:01 2005
@@ -320,32 +320,6 @@
 }
 
 /*
- * Determine if a directory is empty
- */
-static int directory_empty(char *path, apr_pool_t *pool)
-{
-    apr_dir_t *dir;
-    apr_finfo_t info;
-    
-    if (apr_dir_open(&dir, path, pool) != APR_SUCCESS) {
-        return 0;
-    }
-
-    while (apr_dir_read(&info, 0, dir) == APR_SUCCESS && !interrupted) {
-        if (!strcmp(info.name, ".") || !strcmp(info.name, "..")) {
-            continue;
-        }
-        
-        /* If we're here, the directory is not empty */
-        apr_dir_close(dir);
-        return 0;
-    }
-
-    apr_dir_close(dir);
-    return 1;
-}
-
-/*
  * walk the cache directory tree
  */
 static int process_dir(char *path, apr_pool_t *pool)



Re: svn commit: r232218 - /httpd/httpd/trunk/support/htcacheclean.c

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On Fri, Aug 12, 2005 at 06:38:04AM -0000, jorton@apache.org wrote:
> Author: jorton
> Date: Thu Aug 11 23:38:01 2005
> New Revision: 232218
> 
> URL: http://svn.apache.org/viewcvs?rev=232218&view=rev
> Log:
> * support/htcacheclean.c (directory_empty): Remove unused function.

*smacks head*

Thanks!  I guess I forgot to remove the implementation... Doh.  -- justin