aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 20:42:59 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 20:42:59 +0500
commitcc88d3d1fd9d3ee057da84a26cfeea08a663b2b9 (patch)
tree7166bc024c64e54a44cef2b4459bd53ca7c29d83
parent48b21cfa9cb0f3e6e97b205874425509c597ff05 (diff)
downloadprosody-cc88d3d1fd9d3ee057da84a26cfeea08a663b2b9.tar.gz
prosody-cc88d3d1fd9d3ee057da84a26cfeea08a663b2b9.zip
componentmanager: Removed get_children(host).
-rw-r--r--core/componentmanager.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index fceddcc5..dfc2cd78 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -22,9 +22,6 @@ local pairs, setmetatable, type, tostring = pairs, setmetatable, type, tostring;
local components = {};
-local disco_items = require "util.multitable".new();
-local NULL = {};
-
module "componentmanager"
local function default_component_handler(origin, stanza)
@@ -58,10 +55,6 @@ function register_component(host, component)
hosts[host].dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen();
end
- -- add to disco_items
- if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then
- disco_items:set(host:sub(host:find(".", 1, true)+1), host, true);
- end
modulemanager.load(host, "dialback");
modulemanager.load(host, "tls");
log("debug", "component added: "..host);
@@ -84,10 +77,6 @@ function deregister_component(host)
hosts[host] = nil; -- FIXME do proper unload of all modules and other cleanup before removing
components[host] = nil;
end
- -- remove from disco_items
- if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then
- disco_items:remove(host:sub(host:find(".", 1, true)+1), host);
- end
log("debug", "component removed: "..host);
return true;
else
@@ -95,8 +84,4 @@ function deregister_component(host)
end
end
-function get_children(host)
- return disco_items:get(host) or NULL;
-end
-
return _M;