diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-03-10 17:52:03 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-03-10 17:52:03 +0000 |
commit | 8967760df50c3b1c39fec83b0b3f1e75858daca1 (patch) | |
tree | 6008be38e2627fd54dbc79701d375cc29b2e54d6 | |
parent | e2f3356e2404641840283b8d439137e58604346b (diff) | |
download | prosody-8967760df50c3b1c39fec83b0b3f1e75858daca1.tar.gz prosody-8967760df50c3b1c39fec83b0b3f1e75858daca1.zip |
net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
-rw-r--r-- | net/websocket/frames.lua | 1 | ||||
-rw-r--r-- | util/datetime.lua | 1 | ||||
-rw-r--r-- | util/json.lua | 1 | ||||
-rw-r--r-- | util/prosodyctl.lua | 2 | ||||
-rw-r--r-- | util/rfc6724.lua | 1 |
5 files changed, 1 insertions, 5 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua index 737f46bb..5fe96d45 100644 --- a/net/websocket/frames.lua +++ b/net/websocket/frames.lua @@ -7,7 +7,6 @@ -- local softreq = require "util.dependencies".softreq; -local log = require "util.logger".init "websocket.frames"; local random_bytes = require "util.random".bytes; local bit = assert(softreq"bit" or softreq"bit32", 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); |