mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Remove unreachable code
This commit is contained in:
parent
9e4d26399e
commit
72a22b8915
1 changed files with 0 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue