diff options
author | Kim Alvefur <zash@zash.se> | 2013-03-23 01:27:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-03-23 01:27:38 +0100 |
commit | f004eb9e48d59d329ed56d8b6a8f8b0f1f6ba307 (patch) | |
tree | d2ed6c6b6b1d46f9dee1610f9b5b7862d7145864 | |
parent | 98dea85ed20b7a4ce764936a746d9ecc7408157b (diff) | |
download | prosody-f004eb9e48d59d329ed56d8b6a8f8b0f1f6ba307.tar.gz prosody-f004eb9e48d59d329ed56d8b6a8f8b0f1f6ba307.zip |
mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 6 | ||||
-rw-r--r-- | plugins/mod_http_errors.lua | 1 | ||||
-rw-r--r-- | plugins/mod_motd.lua | 1 | ||||
-rw-r--r-- | plugins/mod_private.lua | 1 | ||||
-rw-r--r-- | plugins/mod_register.lua | 1 |
5 files changed, 2 insertions, 8 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index f136eb46..ff672fc9 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -10,8 +10,7 @@ local prosody = _G.prosody; local hosts = prosody.hosts; local t_concat = table.concat; -local iterators = require "util.iterators"; -local keys, values = iterators.keys, iterators.values; +local keys = require "util.iterators".keys; local usermanager_user_exists = require "core.usermanager".user_exists; local usermanager_create_user = require "core.usermanager".create_user; local usermanager_delete_user = require "core.usermanager".delete_user; @@ -19,9 +18,8 @@ local usermanager_get_password = require "core.usermanager".get_password; local usermanager_set_password = require "core.usermanager".set_password; local hostmanager_activate = require "core.hostmanager".activate; local hostmanager_deactivate = require "core.hostmanager".deactivate; -local is_admin = require "core.usermanager".is_admin; local rm_load_roster = require "core.rostermanager".load_roster; -local st, jid, uuid = require "util.stanza", require "util.jid", require "util.uuid"; +local st, jid = require "util.stanza", require "util.jid"; local timer_add_task = require "util.timer".add_task; local dataforms_new = require "util.dataforms".new; local array = require "util.array"; diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua index 828216dd..2568ea80 100644 --- a/plugins/mod_http_errors.lua +++ b/plugins/mod_http_errors.lua @@ -2,7 +2,6 @@ module:set_global(); local server = require "net.http.server"; local codes = require "net.http.codes"; -local termcolours = require "util.termcolours"; local show_private = module:get_option_boolean("http_errors_detailed", false); local always_serve = module:get_option_boolean("http_errors_always_show", true); diff --git a/plugins/mod_motd.lua b/plugins/mod_motd.lua index fea2cb85..ed78294b 100644 --- a/plugins/mod_motd.lua +++ b/plugins/mod_motd.lua @@ -13,7 +13,6 @@ local motd_jid = module:get_option_string("motd_jid", host); if not motd_text then return; end -local jid_join = require "util.jid".join; local st = require "util.stanza"; motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n%s+", "\n"); -- Strip indentation from the config diff --git a/plugins/mod_private.lua b/plugins/mod_private.lua index f1ebe786..29d3162c 100644 --- a/plugins/mod_private.lua +++ b/plugins/mod_private.lua @@ -9,7 +9,6 @@ local st = require "util.stanza" -local jid_split = require "util.jid".split; local datamanager = require "util.datamanager" module:add_feature("jabber:iq:private"); diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index b3abd394..e941a128 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -7,7 +7,6 @@ -- -local hosts = _G.hosts; local st = require "util.stanza"; local datamanager = require "util.datamanager"; local dataform_new = require "util.dataforms".new; |