Software /
code /
prosody
Comparison
core/hostmanager.lua @ 7143:fa6cd0e9105d
hostmanager: Remove unused imports of 'jid_split' and 'select'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Feb 2016 00:10:46 +0000 |
parent | 6791:e813e8cf6046 |
child | 8253:3a6f5b0f56f0 |
comparison
equal
deleted
inserted
replaced
7142:67226eaef97c | 7143:fa6cd0e9105d |
---|---|
10 local modulemanager = require "core.modulemanager"; | 10 local modulemanager = require "core.modulemanager"; |
11 local events_new = require "util.events".new; | 11 local events_new = require "util.events".new; |
12 local disco_items = require "util.multitable".new(); | 12 local disco_items = require "util.multitable".new(); |
13 local NULL = {}; | 13 local NULL = {}; |
14 | 14 |
15 local jid_split = require "util.jid".split; | |
16 | |
17 local log = require "util.logger".init("hostmanager"); | 15 local log = require "util.logger".init("hostmanager"); |
18 | 16 |
19 local hosts = prosody.hosts; | 17 local hosts = prosody.hosts; |
20 local prosody_events = prosody.events; | 18 local prosody_events = prosody.events; |
21 if not _G.prosody.incoming_s2s then | 19 if not _G.prosody.incoming_s2s then |
22 require "core.s2smanager"; | 20 require "core.s2smanager"; |
23 end | 21 end |
24 local incoming_s2s = _G.prosody.incoming_s2s; | 22 local incoming_s2s = _G.prosody.incoming_s2s; |
25 local core_route_stanza = _G.prosody.core_route_stanza; | 23 local core_route_stanza = _G.prosody.core_route_stanza; |
26 | 24 |
27 local pairs, select, rawget = pairs, select, rawget; | 25 local pairs, rawget = pairs, rawget; |
28 local tostring, type = tostring, type; | 26 local tostring, type = tostring, type; |
29 local setmetatable = setmetatable; | 27 local setmetatable = setmetatable; |
30 | 28 |
31 local _ENV = nil; | 29 local _ENV = nil; |
32 | 30 |