summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-08 23:39:29 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-08 23:39:29 +0000
commita4996261eaa0b2057967e5eb855005a3403a6cb0 (patch)
treed2f91b52ccb09b45a12a4ce1111144f59ea25c22
parent875baa244a7bcc147fe16d8b9242a19f13bafe11 (diff)
libs/web: remove debugging code
-rw-r--r--libs/web/luasrc/cbi.lua2
-rw-r--r--libs/web/luasrc/cbi/datatypes.lua1
2 files changed, 0 insertions, 3 deletions
diff --git a/libs/web/luasrc/cbi.lua b/libs/web/luasrc/cbi.lua
index e885e4e28..ef45a8956 100644
--- a/libs/web/luasrc/cbi.lua
+++ b/libs/web/luasrc/cbi.lua
@@ -1432,13 +1432,11 @@ function AbstractValue.validate(self, value)
local v
for _, v in ipairs(value) do
if v and #v > 0 and not verify_datatype(self.datatype, v) then
- error('F')
return nil
end
end
else
if not verify_datatype(self.datatype, value) then
- error('F')
return nil
end
end
diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua
index 6d8715734..71f4a2a56 100644
--- a/libs/web/luasrc/cbi/datatypes.lua
+++ b/libs/web/luasrc/cbi/datatypes.lua
@@ -29,7 +29,6 @@ _M['or'] = function(v, ...)
local f = select(i, ...)
local a = select(i+1, ...)
if type(f) ~= "function" then
- print("COMP", f, v)
if f == v then
return true
end