From 0c9c6ff79348c1fdf0fcb05e2c96018fedc5a238 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 13 Aug 2010 18:42:41 +0000 Subject: [PATCH] Get rid of an unused variable From: terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10389 d7cf8633-e32d-0410-b094-e92efae38249 --- cmd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd.c b/cmd.c index 19da28e1..80e810a5 100644 --- a/cmd.c +++ b/cmd.c @@ -1111,15 +1111,11 @@ static void Cmd_Apropos_f(void) cvar_t *cvar; cmdalias_t *alias; const char *partial; - size_t len; int count; qboolean ispattern; if (Cmd_Argc() > 1) - { partial = Cmd_Args(); - len = strlen(partial); - } else { Con_Printf("usage: apropos \n"); @@ -1128,10 +1124,7 @@ static void Cmd_Apropos_f(void) ispattern = partial && (strchr(partial, '*') || strchr(partial, '?')); if(!ispattern) - { partial = va("*%s*", partial); - len += 2; - } count = 0; for (cvar = cvar_vars; cvar; cvar = cvar->next) -- 2.39.2