# HG changeset patch # User Matthew Wild # Date 1457632323 0 # Node ID d8300985f2bb1654a6d60c9d8cc6752e952a7148 # Parent b8f60dd8e99ab452c914a227ad0e9122a4e53fe2 net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck] diff -r b8f60dd8e99a -r d8300985f2bb net/websocket/frames.lua --- a/net/websocket/frames.lua Thu Mar 10 17:49:46 2016 +0000 +++ b/net/websocket/frames.lua Thu Mar 10 17:52:03 2016 +0000 @@ -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 -r b8f60dd8e99a -r d8300985f2bb util/datetime.lua --- a/util/datetime.lua Thu Mar 10 17:49:46 2016 +0000 +++ b/util/datetime.lua Thu Mar 10 17:52:03 2016 +0000 @@ -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 -r b8f60dd8e99a -r d8300985f2bb util/json.lua --- a/util/json.lua Thu Mar 10 17:49:46 2016 +0000 +++ b/util/json.lua Thu Mar 10 17:52:03 2016 +0000 @@ -12,7 +12,6 @@ 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 -r b8f60dd8e99a -r d8300985f2bb util/prosodyctl.lua --- a/util/prosodyctl.lua Thu Mar 10 17:49:46 2016 +0000 +++ b/util/prosodyctl.lua Thu Mar 10 17:52:03 2016 +0000 @@ -22,7 +22,7 @@ local io, os = io, os; local print = print; -local tostring, tonumber = tostring, tonumber; +local tonumber = tonumber; local CFG_SOURCEDIR = _G.CFG_SOURCEDIR; diff -r b8f60dd8e99a -r d8300985f2bb util/rfc6724.lua --- a/util/rfc6724.lua Thu Mar 10 17:49:46 2016 +0000 +++ b/util/rfc6724.lua Thu Mar 10 17:52:03 2016 +0000 @@ -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);