Remove useless codes

Signed-off-by: Thomas Rohloff <v10lator@myway.de>
This commit is contained in:
Thomas Rohloff 2020-04-26 15:06:34 +02:00
parent e049594552
commit 66794338cb

View File

@ -78,14 +78,8 @@ wchar_t* FreeTypeGX::charToWideChar(const char* strChar) {
if (bt == (size_t)-1) if (bt == (size_t)-1)
return NULL; return NULL;
if (bt < --len) { if (bt < --len)
strWChar[bt] = 0; strWChar[bt] = 0;
return strWChar;
}
wchar_t *tempDest = strWChar;
while ((*tempDest++ = *strChar++))
;
return strWChar; return strWChar;
} }