protocols/core: fix bad .write() invocation in luci.tools.proto
[project/luci.git] / protocols / core / luasrc / tools / proto.lua
index 020589f..4df0269 100644 (file)
@@ -13,9 +13,6 @@ You may obtain a copy of the License at
 
 module("luci.tools.proto", package.seeall)
 
-local uci = require "luci.model.uci".cursor()
-local net = require "luci.model.network"
-
 function opt_macaddr(s, ifc, ...)
        local v = luci.cbi.Value
        local o = s:taboption("advanced", v, "macaddr", ...)
@@ -44,6 +41,6 @@ function opt_macaddr(s, ifc, ...)
        end
 
        function o.remove(self, section)
-               self:write(self, section, nil)
+               self:write(section, nil)
        end
 end