Browse Source

engine: client: console: remove useless function Con_StringLength

pull/2/head
Alibek Omarov 2 years ago
parent
commit
9a24cb8c96
  1. 32
      engine/client/console.c

32
engine/client/console.c

@ -213,37 +213,6 @@ void Con_ClearTyping( void ) @@ -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 ) @@ -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 );

Loading…
Cancel
Save