From f494d344a9e5c420ed6f17fec71d0a48ad0dd970 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 12 Aug 2010 15:44:11 +0200 Subject: removed some not longer needed stuff --- src/engine/shared/console.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/engine/shared/console.cpp') diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index a6cf4d0b..367e7e87 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -29,13 +29,6 @@ float CConsole::CResult::GetFloat(unsigned Index) } // the maximum number of tokens occurs in a string of length CONSOLE_MAX_STR_LENGTH with tokens size 1 separated by single spaces -static char *SkipBlanks(char *pStr) -{ - while(*pStr && (*pStr == ' ' || *pStr == '\t' || *pStr == '\n')) - pStr++; - return pStr; -} - static char *SkipToBlank(char *pStr) { while(*pStr && (*pStr != ' ' && *pStr != '\t' && *pStr != '\n')) @@ -55,7 +48,7 @@ int CConsole::ParseStart(CResult *pResult, const char *pString, int Length) pStr = pResult->m_aStringStorage; // get command - pStr = SkipBlanks(pStr); + pStr = str_skip_whitespaces(pStr); pResult->m_pCommand = pStr; pStr = SkipToBlank(pStr); @@ -91,7 +84,7 @@ int CConsole::ParseArgs(CResult *pResult, const char *pFormat) Optional = 1; else { - pStr = SkipBlanks(pStr); + pStr = str_skip_whitespaces(pStr); if(!(*pStr)) // error, non optional command needs value { -- cgit 1.4.1