aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 02:22:42 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 02:22:42 +0100
commita4d9a4101e53a2a1f86c4bc3af0a8ce3711d4afb (patch)
tree2e5c9e862ce997cbafe2b1f2102a42c11dc85945 /core
parentf07d1d5441b89862306761de228161d09520e8a7 (diff)
downloadprosody-a4d9a4101e53a2a1f86c4bc3af0a8ce3711d4afb.tar.gz
prosody-a4d9a4101e53a2a1f86c4bc3af0a8ce3711d4afb.zip
modulemanager: Remove unused function imports
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua14
1 files changed, 4 insertions, 10 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 40aa4ba2..8fdd5c1d 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -14,15 +14,9 @@ local pluginloader = require "util.pluginloader";
local hosts = hosts;
local prosody = prosody;
-local loadfile, pcall, xpcall = loadfile, pcall, xpcall;
-local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv;
-local pairs, ipairs = pairs, ipairs;
-local t_insert, t_concat = table.insert, table.concat;
-local type = type;
-local next = next;
-local rawget = rawget;
-local error = error;
-local tostring, tonumber = tostring, tonumber;
+local pcall, xpcall = pcall, xpcall;
+local setmetatable, rawget, setfenv = setmetatable, rawget, setfenv;
+local pairs, type, tostring = pairs, type, tostring;
local debug_traceback = debug.traceback;
local unpack, select = unpack, select;
@@ -32,7 +26,7 @@ pcall = function(f, ...)
return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end);
end
-local array, set = require "util.array", require "util.set";
+local set = require "util.set";
local autoload_modules = {"presence", "message", "iq", "offline", "c2s", "s2s"};
local component_inheritable_modules = {"tls", "dialback", "iq"};