Remove unreachable code

This commit is contained in:
Yamagi Burmeister 2015-09-08 19:31:22 +02:00
parent 9e4d26399e
commit 72a22b8915

View file

@ -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