]> granicus.if.org Git - apache/commitdiff
* support/htcacheclean.c (directory_empty): Remove unused function.
authorJoe Orton <jorton@apache.org>
Fri, 12 Aug 2005 06:38:01 +0000 (06:38 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 12 Aug 2005 06:38:01 +0000 (06:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@232218 13f79535-47bb-0310-9956-ffa450edef68

support/htcacheclean.c

index 2624ce39d4e0f7f589f0c877486b10e62dcbd3e1..83b0b3affbd473ba40835e078ee32cd267d77c96 100644 (file)
@@ -319,32 +319,6 @@ static void delete_entry(char *path, char *basename, apr_pool_t *pool)
     }
 }
 
-/*
- * 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
  */