From 72a22b89150934143cbdb7cd59f5c1b46e3a63bf Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Tue, 8 Sep 2015 19:31:22 +0200 Subject: [PATCH] Remove unreachable code --- src/backends/unix/system.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/backends/unix/system.c b/src/backends/unix/system.c index a23582bd..13e6a326 100644 --- a/src/backends/unix/system.c +++ b/src/backends/unix/system.c @@ -65,9 +65,6 @@ extern FILE *logfile; static qboolean CompareAttributes(char *path, char *name, unsigned musthave, unsigned canthave) { - struct stat st; - char fn[MAX_OSPATH]; - /* . and .. never match */ if ((strcmp(name, ".") == 0) || (strcmp(name, "..") == 0)) { @@ -75,23 +72,6 @@ CompareAttributes(char *path, char *name, unsigned musthave, unsigned canthave) } return true; - - if (stat(fn, &st) == -1) - { - return false; /* shouldn't happen */ - } - - if ((st.st_mode & S_IFDIR) && (canthave & SFF_SUBDIR)) - { - return false; - } - - if ((musthave & SFF_SUBDIR) && !(st.st_mode & S_IFDIR)) - { - return false; - } - - return true; } void