]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Remove Unused Function UTIL_fileExist()
authorW. Felix Handte <w@felixhandte.com>
Mon, 10 Aug 2020 19:22:29 +0000 (15:22 -0400)
committerW. Felix Handte <w@felixhandte.com>
Mon, 10 Aug 2020 19:22:53 +0000 (15:22 -0400)
programs/util.c
programs/util.h

index 9f9f45d2b146571b653316df0de3ad2fdc2762a6..420d6aa70a1b927fb52b027946f021a2d53c7e9e 100644 (file)
@@ -110,12 +110,6 @@ int UTIL_stat(const char* filename, stat_t* statbuf)
 #endif
 }
 
-int UTIL_fileExist(const char* filename)
-{
-    stat_t statbuf;
-    return UTIL_stat(filename, &statbuf);
-}
-
 int UTIL_isRegularFile(const char* infilename)
 {
     stat_t statbuf;
index 57cdc6058f9d19991a0f2f96759e90c8bdc04655..f903ccb136fa7a24295b79f42e068d21556e4328 100644 (file)
@@ -155,7 +155,6 @@ int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions);
  * compute the needed information.
  */
 
-int UTIL_fileExist(const char* filename);
 int UTIL_isRegularFile(const char* infilename);
 int UTIL_isDirectory(const char* infilename);
 int UTIL_isSameFile(const char* file1, const char* file2);