kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=cdf64148b0bd58de8cd200f601aa08f4e92fff71

commit cdf64148b0bd58de8cd200f601aa08f4e92fff71
Author: Kim Woelders <[email protected]>
Date:   Tue Nov 12 17:56:29 2019 +0100

    Drop the __imlib_IsRealFile() file check in __imlib_File...() functions
    
    There should be no reason to do this everywhere.
    Only keep the one used when doing an image load.
---
 src/lib/file.c | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/src/lib/file.c b/src/lib/file.c
index 9192598..1813ca6 100644
--- a/src/lib/file.c
+++ b/src/lib/file.c
@@ -115,24 +115,10 @@ __imlib_FileExtension(const char *file)
 static int
 __imlib_FileStat(const char *file, struct stat *st)
 {
-   int                 err = 0;
-   char               *fl;
-
    if ((!file) || (!*file))
       return -1;
 
-   if (__imlib_IsRealFile(file))
-      fl = strdup(file);
-   else
-      fl = __imlib_FileRealFile(file);
-   if (!fl)
-      return -1;
-
-   if (stat(fl, st) < 0)
-      err = -1;
-
-   free(fl);
-   return err;
+   return stat(file, st);
 }
 
 int

-- 


Reply via email to