Remove func.assert

This commit is contained in:
Lars Mueller 2022-07-10 14:04:37 +02:00
parent aa85f75d6d
commit bd5dd3fa50

@ -155,12 +155,6 @@ function override_chain(func, override)
end end
end end
function assert(value, callback)
if not value then
error(callback())
end
end
--+ Calls func using the provided arguments, deepcopies all arguments --+ Calls func using the provided arguments, deepcopies all arguments
function call_by_value(func, ...) function call_by_value(func, ...)
return func(unpack(modlib.table.deepcopy{...})) return func(unpack(modlib.table.deepcopy{...}))