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 | f51bb941edcb6fe27242b9c21257df066a50da27 (patch) | |
tree | a9708069c587646524ab2a994ba7454ce91c643f | |
parent | 618fc26322c3adabfe9d1a607ecebc611267323c (diff) | |
download | prosody-f51bb941edcb6fe27242b9c21257df066a50da27.tar.gz prosody-f51bb941edcb6fe27242b9c21257df066a50da27.zip |
net.xmppserver_listener: Removed unused variables and imports.
-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" }; |