2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-27 20:40:24 +01:00

engine: client: console: remove useless function Con_StringLength

This commit is contained in:
Alibek Omarov 2023-04-15 02:55:32 +03:00
parent c157b7def3
commit 9a24cb8c96

View File

@ -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 );