aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-28 11:55:39 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-08-02 16:50:49 +0200
commit43e62871567f782ca48de1b41a9edbc49c3b255e (patch)
treeb80b2bfe0b8259284693b2439c4fab1114863c79
parentf9b8a3e6323ef2f4ee5255b16044d966d73a7446 (diff)
Move useful functions to lua_utils.c
This make table_size function accessible by default in all lua scripts. Depends-On: Ia549315e305dd7d02b975a3e8a1278c4ab709eec Change-Id: I312c79581ab3eaef72c1b5725982a70515c62a2a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--conf.d/controller/lua.d/aft.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua
index d661233..2c88c61 100644
--- a/conf.d/controller/lua.d/aft.lua
+++ b/conf.d/controller/lua.d/aft.lua
@@ -22,14 +22,6 @@ local lu = require('luaunit')
lu.LuaUnit:setOutputType('JUNIT')
lu.LuaUnit.fname = "xUnitResults.xml"
-local function table_size(t)
- local size = 0
- for _,_ in pairs(t) do
- size = size + 1
- end
- return size
-end
-
_AFT = {
exit = {0, code},
context = _ctx,