diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-08-03 17:11:40 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-08-03 17:11:40 +0500 |
commit | 90c9e3ccc8bead7164d5d3a8fdc863eaabacaf4a (patch) | |
tree | 503bc085e5881b8ccdb419ab1281f4da2f4eb081 /util | |
parent | a9cc14908561843f55293364b33e8c30aeb95d54 (diff) | |
download | prosody-90c9e3ccc8bead7164d5d3a8fdc863eaabacaf4a.tar.gz prosody-90c9e3ccc8bead7164d5d3a8fdc863eaabacaf4a.zip |
util.sasl, util.sasl_cyrus: Removed a ton of unused variables.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl.lua | 16 | ||||
-rw-r--r-- | util/sasl_cyrus.lua | 8 |
2 files changed, 1 insertions, 23 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index aeb77113..03219791 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -12,27 +12,13 @@ -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -local md5 = require "util.hashes".md5; -local log = require "util.logger".init("sasl"); -local st = require "util.stanza"; -local set = require "util.set"; -local array = require "util.array"; -local to_unicode = require "util.encodings".idna.to_unicode; - -local tostring = tostring; local pairs, ipairs = pairs, ipairs; -local t_insert, t_concat = table.insert, table.concat; -local s_match = string.match; +local t_insert = table.insert; local type = type -local error = error local setmetatable = setmetatable; local assert = assert; local require = require; -require "util.iterators" -local keys = keys - -local array = require "util.array" module "sasl" --[[ diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 72876bbc..ef1bf3d0 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -13,17 +13,9 @@ local cyrussasl = require "cyrussasl"; local log = require "util.logger".init("sasl_cyrus"); -local array = require "util.array"; -local tostring = tostring; -local pairs, ipairs = pairs, ipairs; -local t_insert, t_concat = table.insert, table.concat; -local s_match = string.match; local setmetatable = setmetatable -local keys = keys; - -local print = print local pcall = pcall local s_match, s_gmatch = string.match, string.gmatch |