diff options
author | Logan Dethrow <log@lindenlab.com> | 2011-05-27 12:55:31 -0400 |
---|---|---|
committer | Logan Dethrow <log@lindenlab.com> | 2011-05-27 12:55:31 -0400 |
commit | c2037024596f473ce379e4a073e1ebba745eeed6 (patch) | |
tree | 83071fe03ce97e8de3df4c4c75f4dd54e2c67941 /indra/llvfs/lldir_mac.cpp | |
parent | 57bdcd6bda363fc8df21563597419f12c87f7b15 (diff) |
VWR-25861 VWR-25862 Removed LLDir_Mac::deleteFilesInDir() virtual method.
The LLDir base class method will now be used instead. The handling of the mask
parameter was inconsistent between the two implementations, and the failure
to remove the old method was probably just an oversight.
Diffstat (limited to 'indra/llvfs/lldir_mac.cpp')
-rw-r--r-- | indra/llvfs/lldir_mac.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/indra/llvfs/lldir_mac.cpp b/indra/llvfs/lldir_mac.cpp index 8f48f92e2a..489bc3e4a7 100644 --- a/indra/llvfs/lldir_mac.cpp +++ b/indra/llvfs/lldir_mac.cpp @@ -258,38 +258,6 @@ U32 LLDir_Mac::countFilesInDir(const std::string &dirname, const std::string &ma return (file_count); } -S32 LLDir_Mac::deleteFilesInDir(const std::string &dirname, const std::string &mask) -{ - glob_t g; - S32 result = 0; - - std::string tmp_str; - tmp_str = dirname; - tmp_str += mask; - - if(glob(tmp_str.c_str(), GLOB_NOSORT, NULL, &g) == 0) - { - int i; - - for(i = 0; i < g.gl_pathc; i++) - { -// llinfos << "deleteFilesInDir: deleting number " << i << ", path is " << g.gl_pathv[i] << llendl; - - if(unlink(g.gl_pathv[i]) != 0) - { - result = errno; - - llwarns << "Problem removing " << g.gl_pathv[i] << " - errorcode: " - << result << llendl; - } - } - - globfree(&g); - } - - return(result); -} - std::string LLDir_Mac::getCurPath() { char tmp_str[LL_MAX_PATH]; /* Flawfinder: ignore */ |