From a05d69fc1fe02597e049d144688fb3626d0bf0d0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 10 Mar 2016 17:52:03 +0000 Subject: net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck] --- net/websocket/frames.lua | 1 - util/datetime.lua | 1 - util/json.lua | 1 - util/prosodyctl.lua | 2 +- util/rfc6724.lua | 1 - 5 files changed, 1 insertion(+), 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); -- cgit v1.2.3