summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-08 08:14:31 +0000
committerSteven Barth <steven@midlink.org>2008-06-08 08:14:31 +0000
commit7d03f8ea8a5edf72b708a8a4f45346048274fae6 (patch)
tree5e043f366b4db2b02d3389b09e5699c485c57bc8 /libs/core
parent09ecbe73ed51cdbbb204f323ad9207505680cd94 (diff)
* Core translation
* Added license headers * Splitted qos into separate application package
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/util.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua
index 343c62725..11f77206b 100644
--- a/libs/core/luasrc/util.lua
+++ b/libs/core/luasrc/util.lua
@@ -276,20 +276,6 @@ function updfenv(f, extscope)
end
--- Validates a variable
-function validate(value, cast_number, cast_int)
- if cast_number or cast_int then
- value = tonumber(value)
- end
-
- if cast_int and value and not(value % 1 == 0) then
- value = nil
- end
-
- return value
-end
-
-
-- Parse units from a string and return integer value
function parse_units(ustr)