Remove the helper.deprecate function, which isn't used anywhere

This commit is contained in:
Celtic Minstrel 2019-11-16 13:11:58 -05:00
parent 24b11221cf
commit 597ed24170

View file

@ -175,17 +175,6 @@ function helper.rand (possible_values, random_func)
return nil
end
function helper.deprecate(msg, f)
return function(...)
if msg then
wesnoth.log("warn", msg, wesnoth.game_config.debug)
-- trigger the message only once
msg = nil
end
return f(...)
end
end
function helper.round( number )
-- code converted from util.hpp, round_portable function
-- round half away from zero method