mirror of https://github.com/mgba-emu/mgba.git
Util: Code cleanup to remove unreachable code
This commit is contained in:
parent
aa7b9349f8
commit
a2587cb8cf
|
@ -177,16 +177,12 @@ size_t toUtf8(uint32_t unichar, char* buffer) {
|
|||
buffer[2] = (unichar & 0x3F) | 0x80;
|
||||
return 3;
|
||||
}
|
||||
if (unichar < 0x200000) {
|
||||
|
||||
buffer[0] = (unichar >> 18) | 0xF0;
|
||||
buffer[1] = ((unichar >> 12) & 0x3F) | 0x80;
|
||||
buffer[2] = ((unichar >> 6) & 0x3F) | 0x80;
|
||||
buffer[3] = (unichar & 0x3F) | 0x80;
|
||||
return 4;
|
||||
}
|
||||
|
||||
// This shouldn't be possible
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t toUtf16(uint32_t unichar, uint16_t* buffer) {
|
||||
|
|
Loading…
Reference in New Issue