CSM: Remove screenshot API

Reverted from commit 19960e26c672c6337f8c6ffbe27f2c6bca49750c
(* [CSM] add screenshot api lua)
This commit is contained in:
red-001 2018-01-19 16:18:16 +00:00 committed by paramat
parent d6050bee51
commit 0425c6b8c8
3 changed files with 0 additions and 13 deletions

@ -763,8 +763,6 @@ Call these functions only at load time!
* `minetest.disconnect()` * `minetest.disconnect()`
* Disconnect from the server and exit to main menu. * Disconnect from the server and exit to main menu.
* Returns `false` if the client is already disconnecting otherwise returns `true`. * Returns `false` if the client is already disconnecting otherwise returns `true`.
* `minetest.take_screenshot()`
* Take a screenshot.
* `minetest.get_server_info()` * `minetest.get_server_info()`
* Returns [server info](#server-info). * Returns [server info](#server-info).
* `minetest.send_respawn()` * `minetest.send_respawn()`

@ -330,13 +330,6 @@ int ModApiClient::l_get_node_def(lua_State *L)
return 1; return 1;
} }
int ModApiClient::l_take_screenshot(lua_State *L)
{
Client *client = getClient(L);
client->makeScreenshot();
return 0;
}
int ModApiClient::l_get_privilege_list(lua_State *L) int ModApiClient::l_get_privilege_list(lua_State *L)
{ {
const Client *client = getClient(L); const Client *client = getClient(L);
@ -377,7 +370,6 @@ void ModApiClient::Initialize(lua_State *L, int top)
API_FCT(get_server_info); API_FCT(get_server_info);
API_FCT(get_item_def); API_FCT(get_item_def);
API_FCT(get_node_def); API_FCT(get_node_def);
API_FCT(take_screenshot);
API_FCT(get_privilege_list); API_FCT(get_privilege_list);
API_FCT(get_builtin_path); API_FCT(get_builtin_path);
API_FCT(get_language); API_FCT(get_language);

@ -87,9 +87,6 @@ private:
// get_node_def(nodename) // get_node_def(nodename)
static int l_get_node_def(lua_State *L); static int l_get_node_def(lua_State *L);
// take_screenshot()
static int l_take_screenshot(lua_State *L);
// get_privilege_list() // get_privilege_list()
static int l_get_privilege_list(lua_State *L); static int l_get_privilege_list(lua_State *L);