summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r--libs/web/luasrc/cbi/datatypes.lua21
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua
index 65a8eedeb1..9f5a3eb1bf 100644
--- a/libs/web/luasrc/cbi/datatypes.lua
+++ b/libs/web/luasrc/cbi/datatypes.lua
@@ -66,13 +66,6 @@ function ipaddr(val)
return ip4addr(val) or ip6addr(val)
end
-function neg_ipaddr(v)
- if type(v) == "string" then
- v = v:gsub("^%s*!", "")
- end
- return v and ipaddr(v)
-end
-
function ip4addr(val)
if val then
return ip.IPv4(val) and true or false
@@ -81,13 +74,6 @@ function ip4addr(val)
return false
end
-function neg_ip4addr(v)
- if type(v) == "string" then
- v = v:gsub("^%s*!", "")
- end
- return v and ip4addr(v)
-end
-
function ip4prefix(val)
val = tonumber(val)
return ( val and val >= 0 and val <= 32 )
@@ -235,13 +221,6 @@ function uciname(val)
return (val:match("^[a-zA-Z0-9_]+$") ~= nil)
end
-function neg_network_ip4addr(val)
- if type(v) == "string" then
- v = v:gsub("^%s*!", "")
- return (uciname(v) or ip4addr(v))
- end
-end
-
function range(val, min, max)
val = tonumber(val)
min = tonumber(min)