From 2c40b064c4310c8cd7d38046e8d3fbebad35ad05 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Wed, 21 Oct 2020 21:41:33 +0200 Subject: [PATCH] package/gluon-hoodselector: util.lua remove get_domains function Signed-off-by: Jan-Tarek Butt --- .../luasrc/usr/lib/lua/hoodselector/util.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua index af079f36..f54f4d48 100644 --- a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua +++ b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua @@ -1,6 +1,4 @@ -local util = require ('gluon.util') local math_polygon = require('math-polygon') -local json = require ('jsonc') local uci = require('simple-uci').cursor() local site = require ('gluon.site') local logger = require('posix.syslog') @@ -11,17 +9,6 @@ function M.log(msg) logger.openlog(msg, logger.LOG_PID) end -function M.get_domains() - local list = {} - for _, domain_path in ipairs(util.glob('/lib/gluon/domains/*.json')) do - table.insert(list, { - domain_code = domain_path:match('([^/]+)%.json$'), - domain = assert(json.load(domain_path)), - }) - end - return list -end - -- Return the default domain from the domain list. -- This method can return the following data: -- * default domain