diff options
author | Jeija <norrepli@gmail.com> | 2017-01-15 20:11:12 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2017-01-15 20:11:12 +0100 |
commit | 54daee236e680fa79b2dd31e812f7e063887a0bf (patch) | |
tree | b0c66d203e6842ef8e894f7b377b56cee0e9aa97 /mesecons | |
parent | c2e3d7c4e58b2563e79aead60c6efedf27c786cf (diff) | |
download | mesecons-54daee236e680fa79b2dd31e812f7e063887a0bf.tar mesecons-54daee236e680fa79b2dd31e812f7e063887a0bf.tar.gz mesecons-54daee236e680fa79b2dd31e812f7e063887a0bf.tar.bz2 mesecons-54daee236e680fa79b2dd31e812f7e063887a0bf.tar.xz mesecons-54daee236e680fa79b2dd31e812f7e063887a0bf.zip |
Luacontroller: Revert function stripping from digiline messages
Diffstat (limited to 'mesecons')
-rw-r--r-- | mesecons/util.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mesecons/util.lua b/mesecons/util.lua index b9b0cef..39f5696 100644 --- a/mesecons/util.lua +++ b/mesecons/util.lua @@ -151,24 +151,6 @@ function mesecon.tablecopy(table) -- deep table copy return newtable end -function mesecon.tablecopy_stripfunctions(table) -- deep table copy, but remove all functions - if type(table) == "function" then return nil end -- functions become nil - if type(table) ~= "table" then return table end -- no need to copy - local newtable = {} - - for idx, item in pairs(table) do - if type(idx) ~= "function" then - if type(item) == "table" then - newtable[idx] = mesecon.tablecopy_stripfunctions(item) - elseif type(item) ~= "function" then - newtable[idx] = item - end - end - end - - return newtable -end - function mesecon.cmpAny(t1, t2) if type(t1) ~= type(t2) then return false end if type(t1) ~= "table" and type(t2) ~= "table" then return t1 == t2 end |