stanza_router: Remove unused variables

Thu, 25 Jun 2009 08:15:42 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 25 Jun 2009 08:15:42 +0500
changeset 1411
b12096b69f36
parent 1410
b71a9e29adc3
child 1412
6cfcab7cd4e7

stanza_router: Remove unused variables

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Thu Jun 25 08:13:21 2009 +0500
+++ b/core/stanza_router.lua	Thu Jun 25 08:15:42 2009 +0500
@@ -175,12 +175,8 @@
 end
 
 function core_route_stanza(origin, stanza)
-	local to = stanza.attr.to;
-	local node, host, resource = jid_split(to);
-	local to_bare = node and (node.."@"..host) or host; -- bare JID
-	local from = stanza.attr.from;
-	local from_node, from_host, from_resource = jid_split(from);
-	local from_bare = from_node and (from_node.."@"..from_host) or from_host; -- bare JID
+	local node, host, resource = jid_split(stanza.attr.to);
+	local from_node, from_host, from_resource = jid_split(stanza.attr.from);
 
 	-- Auto-detect origin if not specified
 	origin = origin or hosts[from_host];

mercurial