Removed some obsolete code (#10562)

Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
This commit is contained in:
Zughy 2021-01-21 18:17:09 +00:00 committed by Nils Dagsson Moskopp
parent 1ab4612f43
commit 7435891dca
Signed by: erle
GPG Key ID: A3BC671C35191080
3 changed files with 1 additions and 35 deletions

View File

@ -1,28 +1,5 @@
-- Minetest: builtin/deprecated.lua -- Minetest: builtin/deprecated.lua
--
-- Default material types
--
local function digprop_err()
core.log("deprecated", "The core.digprop_* functions are obsolete and need to be replaced by item groups.")
end
core.digprop_constanttime = digprop_err
core.digprop_stonelike = digprop_err
core.digprop_dirtlike = digprop_err
core.digprop_gravellike = digprop_err
core.digprop_woodlike = digprop_err
core.digprop_leaveslike = digprop_err
core.digprop_glasslike = digprop_err
function core.node_metadata_inventory_move_allow_all()
core.log("deprecated", "core.node_metadata_inventory_move_allow_all is obsolete and does nothing.")
end
function core.add_to_creative_inventory(itemstring)
core.log("deprecated", "core.add_to_creative_inventory is obsolete and does nothing.")
end
-- --
-- EnvRef -- EnvRef
-- --
@ -77,7 +54,7 @@ core.setting_save = setting_proxy("write")
function core.register_on_auth_fail(func) function core.register_on_auth_fail(func)
core.log("deprecated", "core.register_on_auth_fail " .. core.log("deprecated", "core.register_on_auth_fail " ..
"is obsolete and should be replaced by " .. "is deprecated and should be replaced by " ..
"core.register_on_authplayer instead.") "core.register_on_authplayer instead.")
core.register_on_authplayer(function (player_name, ip, is_success) core.register_on_authplayer(function (player_name, ip, is_success)

View File

@ -705,10 +705,6 @@ core.nodedef_default = {
on_receive_fields = nil, on_receive_fields = nil,
on_metadata_inventory_move = core.node_metadata_inventory_move_allow_all,
on_metadata_inventory_offer = core.node_metadata_inventory_offer_allow_all,
on_metadata_inventory_take = core.node_metadata_inventory_take_allow_all,
-- Node properties -- Node properties
drawtype = "normal", drawtype = "normal",
visual_scale = 1.0, visual_scale = 1.0,

View File

@ -324,13 +324,6 @@ for name in pairs(forbidden_item_names) do
register_alias_raw(name, "") register_alias_raw(name, "")
end end
-- Obsolete:
-- Aliases for core.register_alias (how ironic...)
-- core.alias_node = core.register_alias
-- core.alias_tool = core.register_alias
-- core.alias_craftitem = core.register_alias
-- --
-- Built-in node definitions. Also defined in C. -- Built-in node definitions. Also defined in C.
-- --