Revert "Lua: Add wesnoth.get_language returning the current locale"
This reverts commit 3c3e73ac2d
.
New APIs shouldn't be added to a stable line.
This commit is contained in:
parent
3c3e73ac2d
commit
1182e9595b
1 changed files with 0 additions and 8 deletions
|
@ -22,7 +22,6 @@
|
|||
#include "random.hpp"
|
||||
#include "seed_rng.hpp"
|
||||
#include "deprecation.hpp"
|
||||
#include "language.hpp" // for get_language
|
||||
|
||||
#ifdef DEBUG_LUA
|
||||
#include "scripting/debug_lua.hpp"
|
||||
|
@ -402,12 +401,6 @@ static int intf_format_list(lua_State* L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int intf_get_language(lua_State* L)
|
||||
{
|
||||
lua_push(L, get_language().localename);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dumps a wml table or userdata wml object into a pretty string.
|
||||
* - Arg 1: wml table or vconfig userdata
|
||||
|
@ -553,7 +546,6 @@ lua_kernel_base::lua_kernel_base()
|
|||
{ "format", &intf_format },
|
||||
{ "format_conjunct_list", &intf_format_list<true> },
|
||||
{ "format_disjunct_list", &intf_format_list<false> },
|
||||
{ "get_language", &intf_get_language },
|
||||
{ nullptr, nullptr }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue