mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 21:01:30 +00:00
Remove the helper.deprecate function, which isn't used anywhere
This commit is contained in:
parent
24b11221cf
commit
597ed24170
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user