diff --git a/engine/server/sv_sys_unix.c b/engine/server/sv_sys_unix.c index c98c3fbea..b02aa0d47 100644 --- a/engine/server/sv_sys_unix.c +++ b/engine/server/sv_sys_unix.c @@ -335,41 +335,6 @@ int main(int argc, char *argv[]) -//1 if match -//FIXME: make windows like - *.* becomes * -int wildcmp(char *wild, char *string) { - char *cp, *mp; - - while ((*string) && (*wild != '*')) { - if ((*wild != *string) && (*wild != '?')) { - return 0; - } - wild++; - string++; - } - - while (*string) { - if (*wild == '*') { - if (!*++wild) { - return 1; - } - mp = wild; - cp = string+1; - } else if ((*wild == *string) || (*wild == '?')) { - wild++; - string++; - } else { - wild = mp; - string = cp++; - } - } - - while (*wild == '*') { - wild++; - } - return !*wild; -} - int Sys_EnumerateFiles (char *gpath, char *match, int (*func)(char *, int, void *), void *parm) {