25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

gen_mod: Remove frontend process support

ejabberd doesn't support frontend processes anymore.
This commit is contained in:
Holger Weiss 2018-04-04 18:22:59 +02:00
parent 45a3c7e0ce
commit 094f586811

View File

@ -833,9 +833,7 @@ get_hosts(Opts, Prefix) ->
Hosts
end.
-spec get_module_proc(binary(), {frontend, atom()} | atom()) -> atom().
get_module_proc(Host, {frontend, Base}) ->
get_module_proc(<<"frontend_", Host/binary>>, Base);
-spec get_module_proc(binary(), atom()) -> atom().
get_module_proc(Host, Base) ->
binary_to_atom(
<<(erlang:atom_to_binary(Base, latin1))/binary, "_", Host/binary>>,