From 49d200d086f3fd1e49c72b0ff602bf87e9eb22a3 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Mon, 21 Dec 2020 04:40:51 +1300 Subject: [PATCH] Remove core.remove_detached_inventory (#193) --- builtin/game/detached_inventory.lua | 5 ----- doc/lua_api.txt | 2 -- 2 files changed, 7 deletions(-) diff --git a/builtin/game/detached_inventory.lua b/builtin/game/detached_inventory.lua index 2e27168a..1d4f0901 100644 --- a/builtin/game/detached_inventory.lua +++ b/builtin/game/detached_inventory.lua @@ -17,8 +17,3 @@ function core.create_detached_inventory(name, callbacks, player_name) core.detached_inventories[name] = stuff return core.create_detached_inventory_raw(name, player_name) end - -function core.remove_detached_inventory(name) - core.detached_inventories[name] = nil - return core.remove_detached_inventory_raw(name) -end diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9e10612c..127af335 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2865,8 +2865,6 @@ and `minetest.auth_reload` call the authetification handler. Note that this parameter is mostly just a workaround and will be removed in future releases. * Creates a detached inventory. If it already exists, it is cleared. -* `minetest.remove_detached_inventory(name)` - * Returns a `boolean` indicating whether the removal succeeded. * `minetest.do_item_eat(hp_change, replace_with_item, poison, itemstack, user, pointed_thing)`: returns left over ItemStack * See `minetest.item_eat` and `minetest.register_on_item_eat`