From d0f4bbd2dbe8a2ff9088cd47dad8418d1030637e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 21 Dec 2011 07:58:22 +0000 Subject: util.stanza: Remove unused __add metamethod --- util/stanza.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'util/stanza.lua') diff --git a/util/stanza.lua b/util/stanza.lua index de83977f..600212a4 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -258,11 +258,6 @@ function stanza_mt.get_error(stanza) return type, condition or "undefined-condition", text; end -function stanza_mt.__add(s1, s2) - return s1:add_direct_child(s2); -end - - do local id = 0; function new_id() -- cgit v1.2.3 From 811e44ec5ee884f25d57280a8d9e56336c14b80d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 28 Apr 2012 02:38:56 +0100 Subject: util.stanza: Remove unused function imports --- util/stanza.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'util/stanza.lua') diff --git a/util/stanza.lua b/util/stanza.lua index 600212a4..1449f707 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -8,22 +8,16 @@ local t_insert = table.insert; -local t_concat = table.concat; local t_remove = table.remove; local t_concat = table.concat; local s_format = string.format; local s_match = string.match; local tostring = tostring; local setmetatable = setmetatable; -local getmetatable = getmetatable; local pairs = pairs; local ipairs = ipairs; local type = type; -local next = next; -local print = print; -local unpack = unpack; local s_gsub = string.gsub; -local s_char = string.char; local s_find = string.find; local os = os; -- cgit v1.2.3