Util: Remove unreachable code

This commit is contained in:
Vicki Pfau 2024-04-14 04:18:43 -07:00
parent f13a087b04
commit 2d7000c8ae
1 changed files with 0 additions and 3 deletions

View File

@ -285,9 +285,6 @@ char* latin1ToUtf8(const char* latin1, size_t length) {
size_t utf8TotalBytes = 0;
size_t utf8Length = 0;
for (offset = 0; offset < length; ++offset) {
if (length == 0) {
break;
}
uint8_t unichar = latin1[offset];
size_t bytes = toUtf8(unichar, buffer);
utf8Length += bytes;