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
commit45fb895f1992c1cd602e93654b8c99ed25e51912 (patch)
tree2e5c9e862ce997cbafe2b1f2102a42c11dc85945 /core
parent0ecb3e3e04d11b115666af849340fdd8de352bd7 (diff)
downloadprosody-45fb895f1992c1cd602e93654b8c99ed25e51912.tar.gz
prosody-45fb895f1992c1cd602e93654b8c99ed25e51912.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"};