Remove UCI changes workaround
authorSteven Barth <steven@midlink.org>
Sat, 15 Nov 2008 11:27:26 +0000 (11:27 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 15 Nov 2008 11:27:26 +0000 (11:27 +0000)
libs/uci/luasrc/model/uci.lua

index 587cd63c0bba6fe5c8753fe8ee08bd2e1f8dbe22..ecb8f47d0b492cef67ecde52999b8f656f1d5562 100644 (file)
@@ -164,25 +164,6 @@ function Cursor.set_list(self, config, section, option, value)
        return false
 end
 
-
-Cursor._changes = Cursor.changes
-function Cursor.changes(self, config)
-       if config then
-               return Cursor._changes(self, config)
-       else
-               local changes = Cursor._changes(self)
-               util.copcall(function()
-                       for k,v in pairs(require "luci.fs".dir(self:get_savedir())) do
-                               if v ~= "." and v ~= ".." then
-                                       util.update(changes, Cursor._changes(self, v))
-                               end
-                       end
-               end)
-               return changes
-       end
-end
-
-
 -- Return a list of initscripts affected by configuration changes.
 function Cursor._affected(self, configlist)
        configlist = type(configlist) == "table" and configlist or {configlist}