summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-05 23:25:51 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-05 23:25:51 +0000
commit7f7a600b1235e8199a07451e25f5b03d63a51057 (patch)
tree65861660f47ec6de79eddd9c319a72579a67242d /libs/cbi/luasrc
parent40d4e839eff49bc2390537d465c4543105e95f59 (diff)
* luci/libs/cbi: remove dead code
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r--libs/cbi/luasrc/cbi.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 7cde3c957..be591a80e 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -110,28 +110,8 @@ local function _uvl_validate_section(node, name)
local stat, err = node.map.validator:validate_section(node.config, name, co)
if err then
node.map.save = false
-
tag_fields(err)
tag_section(err)
---[[
- if err:is(luci.uvl.errors.ERR_DEPENDENCY) then
- node.tag_deperror[name] = err:string()
- else
- node.tag_invalid[name] = err:string()
- end
- for i, v in ipairs(err.childs) do
- if v.option and node.fields[v.option] then
- if v:is(luci.uvl.errors.ERR_DEPENDENCY) then
- node.fields[v.option].tag_deperror[name] = v:string()
- elseif v:is(luci.uvl.errors.ERR_OPT_REQUIRED) then
- node.fields[v.option].tag_missing[name] = v:string()
- node.tag_reqerror[name] = v:string()
- elseif v:is(luci.uvl.errors.ERR_OPTION) then
- node.fields[v.option].tag_invalid[name] = v:string()
- end
- end
- end
-]]
end
end