Software /
code /
prosody
Changeset
2506:d11a781baf13
xmlhandlers: Removed unused variables.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 26 Jan 2010 03:39:53 +0500 |
parents | 2505:0849e349992d |
children | 2507:a8ce11633597 |
files | core/xmlhandlers.lua |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/core/xmlhandlers.lua Tue Jan 26 03:39:24 2010 +0500 +++ b/core/xmlhandlers.lua Tue Jan 26 03:39:53 2010 +0500 @@ -12,8 +12,6 @@ local st = stanza; local tostring = tostring; -local pairs = pairs; -local ipairs = ipairs; local t_insert = table.insert; local t_concat = table.concat; @@ -33,8 +31,6 @@ local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$"; function init_xmlhandlers(session, stream_callbacks) - local ns_stack = { "" }; - local curr_tag; local chardata = {}; local xml_handlers = {}; local log = session.log or default_log; @@ -97,7 +93,6 @@ end stanza = st.stanza(name, attr); - curr_tag = stanza; else -- we are inside a stanza, so add a tag attr.xmlns = nil; if curr_ns ~= stream_default_ns then