diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-15 03:53:44 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-15 03:53:44 +0500 |
commit | 6718f6dc499133b666b4ca23f02ff6e1b1a11bd1 (patch) | |
tree | 33533f1c81456d2de7c8bfdcbd57fba441e6a636 /net | |
parent | 7463bac8a02b838dc8154d4fbe3237aa01a922d8 (diff) | |
download | prosody-6718f6dc499133b666b4ca23f02ff6e1b1a11bd1.tar.gz prosody-6718f6dc499133b666b4ca23f02ff6e1b1a11bd1.zip |
net.xmppserver_listener: Removed unused variables and imports.
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppserver_listener.lua | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index f2d70ae6..9be6739b 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -16,6 +16,8 @@ local traceback = debug.traceback; local logger = require "logger"; local log = logger.init("xmppserver_listener"); local lxp = require "lxp" +local st = require "util.stanza"; +local connlisteners_register = require "net.connlisteners".register; local new_xmpp_stream = require "util.xmppstream".new; local s2s_new_incoming = require "core.s2smanager".new_incoming; local s2s_streamopened = require "core.s2smanager".streamopened; @@ -64,17 +66,6 @@ function stream_callbacks.handlestanza(session, stanza) end end -local connlisteners_register = require "net.connlisteners".register; - -local t_insert = table.insert; -local t_concat = table.concat; -local t_concatall = function (t, sep) local tt = {}; for _, s in ipairs(t) do t_insert(tt, tostring(s)); end return t_concat(tt, sep); end -local m_random = math.random; -local format = string.format; -local sessionmanager = require "core.sessionmanager"; -local sm_new_session, sm_destroy_session = sessionmanager.new_session, sessionmanager.destroy_session; -local st = require "util.stanza"; - local sessions = {}; local xmppserver = { default_port = 5269, default_mode = "*a" }; |