The dtable() function has no user in the entire LuCI repo, so drop it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
end
-function dtable()
- return setmetatable({}, { __index =
- function(tbl, key)
- return rawget(tbl, key)
- or rawget(rawset(tbl, key, dtable()), key)
- end
- })
-end
-
-
-- Serialize the contents of a table value.
function _serialize_table(t, seen)
assert(not seen[t], "Recursion detected.")
@return Cloned table value
]]
----[[
-Create a dynamic table which automatically creates subtables.
-
-@class function
-@name dtable
-@return Dynamic Table
-]]
-
---[[
Recursively serialize given data to lua code, suitable for restoring
with loadstring().