mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 17:00:23 +02:00
Drop wide/narrow conversion functions
The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
This commit is contained in:
@ -44,7 +44,7 @@ int ModApiServer::l_request_shutdown(lua_State *L)
|
||||
int ModApiServer::l_get_server_status(lua_State *L)
|
||||
{
|
||||
NO_MAP_LOCK_REQUIRED;
|
||||
lua_pushstring(L, wide_to_narrow(getServer(L)->getStatusString()).c_str());
|
||||
lua_pushstring(L, getServer(L)->getStatusString().c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user