aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/websocket/frames.lua1
-rw-r--r--util/datetime.lua1
-rw-r--r--util/json.lua1
-rw-r--r--util/prosodyctl.lua2
-rw-r--r--util/rfc6724.lua1
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);