* Last API changes before 0.4 API softfreeze
[project/luci.git] / core / src / ffluci / util.lua
index 3ff7bc2..9e3c7f2 100644 (file)
@@ -139,12 +139,6 @@ function resfenv(f)
 end 
 
 
--- Returns the Haserl unique sessionid
-function sessionid()
-       return ENV.SESSIONID
-end
-
-
 -- Splits a string into an array
 function split(str, pat, max, regex)
        pat = pat or "\n"
@@ -176,8 +170,8 @@ function split(str, pat, max, regex)
 end
 
 -- Removes whitespace from beginning and end of a string
-function trim(string)
-       local s = string:gsub("^%s*(.-)%s*$", "%1")
+function trim(str)
+       local s = str:gsub("^%s*(.-)%s*$", "%1")
        return s
 end