extensions/experimental: Remove unused code
This commit is contained in:
parent
62315882dc
commit
93215a3bc8
@ -4,24 +4,7 @@
|
||||
local log = buildat.Logger("extension/experimental")
|
||||
local M = {safe = {}}
|
||||
|
||||
local subs_tick = {}
|
||||
|
||||
function __buildat_tick(dtime)
|
||||
for _, cb in ipairs(subs_tick) do
|
||||
cb(dtime)
|
||||
end
|
||||
end
|
||||
|
||||
function M.safe.sub_tick(cb)
|
||||
table.insert(subs_tick, cb)
|
||||
end
|
||||
function M.safe.unsub_tick(cb)
|
||||
for i=#subs_tick,1,-1 do
|
||||
if subs_tick[i] == cb then
|
||||
table.remove(subs_tick, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Empty
|
||||
|
||||
return M
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
Loading…
x
Reference in New Issue
Block a user