ref: dfc609a2f90e1e1a3d107007b2adb0845ebf78f0
parent: 7064c581f9159b45529e49c7cbeeb779f5bc0452
author: Konstantinn Bonnet <qu7uux@gmail.com>
date: Sat Mar 11 07:08:56 EST 2017
remove unused Cmd_CheckParm
--- a/cmd.c
+++ b/cmd.c
@@ -655,27 +655,3 @@
else
SZ_Print (&cls.message, "\n");
}
-
-
-/*
-================
-Cmd_CheckParm
-
-Returns the position (1 to argc-1) in the command's argument list
-where the given parameter apears, or 0 if not present
-================
-*/
-
-int Cmd_CheckParm (char *parm)
-{
- int i;
-
- if (parm == nil)
- fatal ("Cmd_CheckParm: nil");
-
- for (i = 1; i < Cmd_Argc (); i++)
- if(cistrcmp(parm, Cmd_Argv(i)) == 0)
- return i;
-
- return 0;
-}
--- a/cmd.h
+++ b/cmd.h
@@ -78,14 +78,6 @@
// functions. Cmd_Argv () will return an empty string, not a NULL
// if arg > argc, so string operations are allways safe.
-int Cmd_CheckParm (char *parm);
-// Returns the position (1 to argc-1) in the command's argument list
-// where the given parameter apears, or 0 if not present
-
-void Cmd_TokenizeString (char *text);
-// Takes a null terminated string. Does not need to be /n terminated.
-// breaks the string up into arg tokens.
-
void Cmd_ExecuteString (char *text, cmd_source_t src);
// Parses a single line of text into arguments and tries to execute it.
// The text can come from the command buffer, a remote client, or stdin.
@@ -94,8 +86,3 @@
// adds the current command line as a clc_stringcmd to the client message.
// things like godmode, noclip, etc, are commands directed to the server,
// so when they are typed in at the console, they will need to be forwarded.
-
-void Cmd_Print (char *text);
-// used by command functions to send output to either the graphics console or
-// passed as a print message to the client
-