mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Remove unused function from imgui_logger.cpp
This commit is contained in:
parent
479adc4b85
commit
e1ede0c995
38
r5dev/thirdparty/imgui/src/imgui_logger.cpp
vendored
38
r5dev/thirdparty/imgui/src/imgui_logger.cpp
vendored
@ -134,44 +134,6 @@ static int UTF8CharLength(CTextLogger::Char c)
|
||||
return 1;
|
||||
}
|
||||
|
||||
// "Borrowed" from ImGui source
|
||||
static inline int ImTextCharToUtf8(char* buf, int buf_size, unsigned int c)
|
||||
{
|
||||
if (c < 0x80)
|
||||
{
|
||||
buf[0] = (char)c;
|
||||
return 1;
|
||||
}
|
||||
if (c < 0x800)
|
||||
{
|
||||
if (buf_size < 2) return 0;
|
||||
buf[0] = (char)(0xc0 + (c >> 6));
|
||||
buf[1] = (char)(0x80 + (c & 0x3f));
|
||||
return 2;
|
||||
}
|
||||
if (c >= 0xdc00 && c < 0xe000)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (c >= 0xd800 && c < 0xdc00)
|
||||
{
|
||||
if (buf_size < 4) return 0;
|
||||
buf[0] = (char)(0xf0 + (c >> 18));
|
||||
buf[1] = (char)(0x80 + ((c >> 12) & 0x3f));
|
||||
buf[2] = (char)(0x80 + ((c >> 6) & 0x3f));
|
||||
buf[3] = (char)(0x80 + ((c) & 0x3f));
|
||||
return 4;
|
||||
}
|
||||
//else if (c < 0x10000)
|
||||
{
|
||||
if (buf_size < 3) return 0;
|
||||
buf[0] = (char)(0xe0 + (c >> 12));
|
||||
buf[1] = (char)(0x80 + ((c >> 6) & 0x3f));
|
||||
buf[2] = (char)(0x80 + ((c) & 0x3f));
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
void CTextLogger::Advance(Coordinates & aCoordinates) const
|
||||
{
|
||||
if (aCoordinates.m_nLine < static_cast<int>(m_Lines.size()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user