]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
Rename COM_CheckParm to Sys_CheckParm and move it to sys_shared.c
[xonotic/darkplaces.git] / common.c
index 03b7087ef9016182582d45267bbab4abdb3b7471..7271384055629971b660ffbca44ca1ea8f25bf3f 100644 (file)
--- a/common.c
+++ b/common.c
@@ -860,30 +860,6 @@ skipwhite:
        return true;
 }
 
-
-/*
-================
-COM_CheckParm
-
-Returns the position (1 to argc-1) in the program's argument list
-where the given parameter apears, or 0 if not present
-================
-*/
-int COM_CheckParm (const char *parm)
-{
-       int i;
-
-       for (i=1 ; i<sys.argc ; i++)
-       {
-               if (!sys.argv[i])
-                       continue;               // NEXTSTEP sometimes clears appkit vars.
-               if (!strcmp (parm,sys.argv[i]))
-                       return i;
-       }
-
-       return 0;
-}
-
 /*
 ===============
 Com_CalcRoll