diff --git a/engine/client/console.c b/engine/client/console.c index b59b418d..99dc67eb 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -213,37 +213,6 @@ void Con_ClearTyping( void ) Cmd_AutoCompleteClear(); } -/* -============ -Con_StringLength - -skipped color prefixes -============ -*/ -int Con_StringLength( const char *string ) -{ - int len; - const char *p; - - if( !string ) return 0; - - len = 0; - p = string; - - while( *p ) - { - if( IsColorString( p )) - { - p += 2; - continue; - } - len++; - p++; - } - - return len; -} - /* ================ Con_MessageMode_f @@ -2098,7 +2067,6 @@ void Con_DrawVersion( void ) Con_DrawStringLen( curbuild, &stringLen, &charH ); start = refState.width - stringLen * 1.05f; - stringLen = Con_StringLength( curbuild ); height -= charH * 1.05f; Con_DrawString( start, height, curbuild, color );