diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2023-08-06 22:26:08 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2023-08-06 22:27:18 +0300 |
commit | 46a8abc54bb7d5d21fd495112e527cbb194b96ba (patch) | |
tree | 8cdb3e001c4c5e5829045863057d5eb05f309fe6 /libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua | |
parent | aebbafe1778799b77ec0ffaf53732589055ac147 (diff) |
luci-lib-rpcc: Remove old broken lib
Remove the old library that has been BROKEN since 2015.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua')
-rw-r--r-- | libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua b/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua deleted file mode 100644 index 275c396992..0000000000 --- a/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua +++ /dev/null @@ -1,48 +0,0 @@ --- Copyright 2009 Steven Barth <steven@midlink.org> --- Licensed to the public under the Apache License 2.0. - -local util = require "luci.util" -local rawget, setmetatable = rawget, setmetatable -local ipairs = ipairs - -module "luci.rpcc.ruci" - - -local Proxy = util.class() - -function factory(rpccl) - return { - cursor = function(...) - return Proxy(rpccl, rpccl:request("ruci.cursor", {...})) - end, - cursor_state = function(...) - return Proxy(rpccl, rpccl:request("ruci.cursor_state", {...})) - end - } -end - -function Proxy.__init__(self, rpccl, objid) - self.__rpccl = rpccl - self.__objid = objid - - setmetatable(self, { - __index = function(self, key) - return rawget(self, key) or Proxy[key] or function(self, ...) - local argv = {self.__objid, ...} - return self.__rpccl:request("ruci."..key, argv) - end - end - }) -end - -function Proxy.foreach(self, config, section, callback) - local sections = self.__rpccl:request("ruci.foreach", {self.__objid, config, section}) - if sections then - for _, s in ipairs(sections) do - callback(s) - end - return true - else - return false - end -end |