aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-03-10 17:52:03 +0000
committerMatthew Wild <mwild1@gmail.com>2016-03-10 17:52:03 +0000
commit8967760df50c3b1c39fec83b0b3f1e75858daca1 (patch)
tree6008be38e2627fd54dbc79701d375cc29b2e54d6 /util
parente2f3356e2404641840283b8d439137e58604346b (diff)
downloadprosody-8967760df50c3b1c39fec83b0b3f1e75858daca1.tar.gz
prosody-8967760df50c3b1c39fec83b0b3f1e75858daca1.zip
net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
Diffstat (limited to 'util')
-rw-r--r--util/datetime.lua1
-rw-r--r--util/json.lua1
-rw-r--r--util/prosodyctl.lua2
-rw-r--r--util/rfc6724.lua1
4 files changed, 1 insertions, 4 deletions
diff --git a/util/datetime.lua b/util/datetime.lua
index 27f28ace..abb4e867 100644
--- a/util/datetime.lua
+++ b/util/datetime.lua
@@ -12,7 +12,6 @@
local os_date = os.date;
local os_time = os.time;
local os_difftime = os.difftime;
-local error = error;
local tonumber = tonumber;
local _ENV = nil;
diff --git a/util/json.lua b/util/json.lua
index 2c598446..ec6b67de 100644
--- a/util/json.lua
+++ b/util/json.lua
@@ -12,7 +12,6 @@ local s_char = string.char;
local tostring, tonumber = tostring, tonumber;
local pairs, ipairs = pairs, ipairs;
local next = next;
-local error = error;
local getmetatable, setmetatable = getmetatable, setmetatable;
local print = print;
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index f8f28644..207b3763 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -22,7 +22,7 @@ local nodeprep, nameprep = stringprep.nodeprep, stringprep.nameprep;
local io, os = io, os;
local print = print;
-local tostring, tonumber = tostring, tonumber;
+local tonumber = tonumber;
local CFG_SOURCEDIR = _G.CFG_SOURCEDIR;
diff --git a/util/rfc6724.lua b/util/rfc6724.lua
index c8aec631..81f78d55 100644
--- a/util/rfc6724.lua
+++ b/util/rfc6724.lua
@@ -10,7 +10,6 @@
-- We can't hand this off to getaddrinfo, since it blocks
local ip_commonPrefixLength = require"util.ip".commonPrefixLength
-local new_ip = require"util.ip".new_ip;
local function commonPrefixLength(ipA, ipB)
local len = ip_commonPrefixLength(ipA, ipB);