public: remove Q_colorstr, as it's completely useless and checking for color string is easy actually

This commit is contained in:
Alibek Omarov
2025-01-18 08:29:06 +03:00
parent 2d51d23d89
commit 4b1b3aa13c
3 changed files with 4 additions and 22 deletions

View File

@@ -33,26 +33,6 @@ void Q_strnlwr( const char *in, char *out, size_t size_out )
out[i] = Q_tolower( out[i] );
}
size_t Q_colorstr( const char *string )
{
const char *p = string;
size_t len = 0;
if( !string )
return len;
while(( p = Q_strchr( p, '^' )))
{
if( IsColorString( p ))
{
len += 2;
p += 2;
}
}
return len;
}
int Q_atoi_hex( int sign, const char *str )
{
int c, val = 0;