package/gluon-hoodselector: util.lua remove get_domains function
Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
This commit is contained in:
parent
80a47bce23
commit
2c40b064c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user