Remove unused variables

trunk 1.2
mio 2022-04-28 02:05:51 +00:00
parent 202aa6e140
commit f5302105f0
1 changed files with 0 additions and 3 deletions

View File

@ -294,7 +294,6 @@ function itte.init_socket(name, svr)
cap_checked = false, cap_checked = false,
ns_checked = false, ns_checked = false,
authed = false, authed = false,
ping_time = 0,
} }
-- Connect -- Connect
@ -837,7 +836,6 @@ function itte.listen(name, str)
-- Respond to server ping -- Respond to server ping
if string.find(str, cxt.cmds.ping.check) == 1 then if string.find(str, cxt.cmds.ping.check) == 1 then
cxt.state.ping_time = os.time()
util.debug(itte.config.debugs.listen[1], str, itte.config.debug) util.debug(itte.config.debugs.listen[1], str, itte.config.debug)
itte.send_command(cxt.con, string.gsub(str, cxt.cmds.ping.check, itte.send_command(cxt.con, string.gsub(str, cxt.cmds.ping.check,
cxt.cmds.ping.resp)) cxt.cmds.ping.resp))
@ -886,7 +884,6 @@ itte.docs.add_listener = [[ (context_table)
]] ]]
function itte.add_listener(cxt) function itte.add_listener(cxt)
local data, status = cxt.con:receive() local data, status = cxt.con:receive()
local delta = os.time() - cxt.state.ping_time
if data ~= nil then if data ~= nil then
itte.listen(cxt.name, data) itte.listen(cxt.name, data)