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