aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2015-07-22 08:03:27 +0200
committerChristophe Romain <christophe.romain@process-one.net>2015-07-22 08:03:27 +0200
commit9c36a9df784313715d7a7b8fc1e13793b2451406 (patch)
treeda0b79b743132a447c742cac353084ce276abb37 /src
parentMerge pull request #608 from weiss/bare-jid-subscription (diff)
Do not init nodes from mod_pubsub (#609)
Let each plugin do its own initialisation in init_plugins init_nodes was an old function to be removed.
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub.erl9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index f572c33d1..e17b61c56 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -312,7 +312,6 @@ init([ServerHost, Opts]) ->
pubsub_migrate:update_node_database(Host, ServerHost),
pubsub_migrate:update_state_database(Host, ServerHost),
pubsub_migrate:update_lastitem_database(Host, ServerHost),
- init_nodes(Host, ServerHost, NodeTree, Plugins),
{_, State} = init_send_loop(ServerHost),
{ok, State}.
@@ -386,14 +385,6 @@ terminate_plugins(Host, ServerHost, Plugins, TreePlugin) ->
TreePlugin:terminate(Host, ServerHost),
ok.
-init_nodes(Host, ServerHost, _NodeTree, Plugins) ->
- case lists:member(<<"hometree">>, Plugins) of
- true ->
- create_node(Host, ServerHost, <<"/home">>, service_jid(Host), <<"hometree">>),
- create_node(Host, ServerHost, <<"/home/", ServerHost/binary>>, service_jid(Host), <<"hometree">>);
- false -> ok
- end.
-
send_loop(State) ->
receive
{presence, JID, Pid} ->