remove unused ostringstream constructions

This commit is contained in:
y5nw 2024-09-03 22:48:09 +02:00
parent 8f203adf66
commit 6ccf6cebd1

View File

@ -238,8 +238,6 @@ static const table_key &lookup_keychar(wchar_t Char)
return table_key;
}
std::ostringstream os;
os << "<Char " << hex_encode((char*) &Char, sizeof(wchar_t)) << ">";
auto newsym = wide_to_utf8(std::wstring_view(&Char, 1));
table_key new_key {newsym, irr::KEY_KEY_CODES_COUNT, Char, newsym};
return table.emplace_back(std::move(new_key));
@ -271,8 +269,6 @@ static const table_key &lookup_keykey(irr::EKEY_CODE key)
return table_key;
}
std::ostringstream os;
os << "<Keycode " << (int) key << ">";
return invalid_key;
}