From: divverent Date: Fri, 13 Aug 2010 18:42:41 +0000 (+0000) Subject: Get rid of an unused variable X-Git-Tag: xonotic-v0.1.0preview~230^2~89 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c9c6ff79348c1fdf0fcb05e2c96018fedc5a238;p=xonotic%2Fdarkplaces.git Get rid of an unused variable From: terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10389 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)