aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-25 08:20:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-25 08:20:38 +0500
commitbc6907dfa892f645eeb4755035d326983af3295d (patch)
tree898b2b8851ad3b08be5628803d16ab459bce8609 /core
parentd87a664b7e926a78f73e68ae8bc649b2be7902c7 (diff)
downloadprosody-bc6907dfa892f645eeb4755035d326983af3295d.tar.gz
prosody-bc6907dfa892f645eeb4755035d326983af3295d.zip
stanza_router: Remove unused variables and code
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua17
1 files changed, 1 insertions, 16 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 632036d1..472c9747 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -6,30 +6,16 @@
-- COPYING file in the source package for more information.
--
-
-
local log = require "util.logger".init("stanzarouter")
local hosts = _G.hosts;
-
+local tostring = tostring;
local st = require "util.stanza";
local send_s2s = require "core.s2smanager".send_to_host;
-local user_exists = require "core.usermanager".user_exists;
-
-local rostermanager = require "core.rostermanager";
-local offlinemanager = require "core.offlinemanager";
-
local modules_handle_stanza = require "core.modulemanager".handle_stanza;
local component_handle_stanza = require "core.componentmanager".handle_stanza;
-
-local tostring = tostring;
-local t_insert = table.insert;
-local pairs = pairs;
-local ipairs = ipairs;
-
local jid_split = require "util.jid".split;
local jid_prepped_split = require "util.jid".prepped_split;
-local fire_event = prosody.events.fire_event;
function core_process_stanza(origin, stanza)
(origin.log or log)("debug", "Received[%s]: %s", origin.type, stanza:top_tag())
@@ -200,5 +186,4 @@ function core_route_stanza(origin, stanza)
else
log("warn", "received stanza from unhandled connection type: %s", origin.type);
end
- stanza.attr.to = to; -- reset
end