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