From 1e9e5a69cbdaaca861dbb9fc4f103b972c850dcb Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 12 Aug 2005 06:38:01 +0000 Subject: [PATCH] * support/htcacheclean.c (directory_empty): Remove unused function. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@232218 13f79535-47bb-0310-9956-ffa450edef68 --- support/htcacheclean.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 2624ce39d4..83b0b3affb 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -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 */ -- 2.40.0