Changeset

7259:d8300985f2bb

net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Thu, 10 Mar 2016 17:52:03 +0000
parents 7258:b8f60dd8e99a
children 7260:a9ef93bc81d9
files net/websocket/frames.lua util/datetime.lua util/json.lua util/prosodyctl.lua util/rfc6724.lua
diffstat 5 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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",
--- 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;
--- 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;
 
--- 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;
 
--- 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);