diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-04-18 13:20:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-04-18 16:21:27 +0200 |
commit | db0d5b33d04550a1e81a8ea8662f1a2d1305228d (patch) | |
tree | cb83cdcb06d77efd9df7bdefdee25147bb9a4dc7 /modules | |
parent | 1d5a3123ed63777e2d40250fba99cf8cf2f58476 (diff) |
luci-base: drop luci.util.dtable()
The dtable() function has no user in the entire LuCI repo, so drop it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/luasrc/util.lua | 10 | ||||
-rw-r--r-- | modules/luci-base/luasrc/util.luadoc | 8 |
2 files changed, 0 insertions, 18 deletions
diff --git a/modules/luci-base/luasrc/util.lua b/modules/luci-base/luasrc/util.lua index 36bbaaf47..f47d3e53a 100644 --- a/modules/luci-base/luasrc/util.lua +++ b/modules/luci-base/luasrc/util.lua @@ -407,16 +407,6 @@ function clone(object, deep) 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.") diff --git a/modules/luci-base/luasrc/util.luadoc b/modules/luci-base/luasrc/util.luadoc index 19c8010df..c4f28d039 100644 --- a/modules/luci-base/luasrc/util.luadoc +++ b/modules/luci-base/luasrc/util.luadoc @@ -256,14 +256,6 @@ Clones the given object and return it's copy. ]] ---[[ -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(). |