diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index a0255af90..78eebbfb7 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -978,7 +978,6 @@ opt_type(_) -> c2s_protocol_options, c2s_tls_compression, resource_conflict, disable_sasl_mechanisms]. --spec listen_opt_type(atom()) -> fun((any()) -> any()) | [atom()]. listen_opt_type(certfile = Opt) -> fun(S) -> ?WARNING_MSG("Listening option '~s' for ~s is deprecated, use " diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index 9084fec97..dee01250a 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -340,7 +340,6 @@ change_shaper(#{shaper := ShaperName, server_host := ServerHost} = State, Shaper = acl:match_rule(ServerHost, ShaperName, jid:make(RServer)), xmpp_stream_in:change_shaper(State, ejabberd_shaper:new(Shaper)). --spec listen_opt_type(atom()) -> fun((any()) -> any()) | [atom()]. listen_opt_type(certfile = Opt) -> fun(S) -> ?WARNING_MSG("Listening option '~s' for ~s is deprecated, use " diff --git a/src/ejabberd_service.erl b/src/ejabberd_service.erl index 979d13104..02302a838 100644 --- a/src/ejabberd_service.erl +++ b/src/ejabberd_service.erl @@ -281,7 +281,6 @@ transform_listen_option({host, Host, Os}, Opts) -> transform_listen_option(Opt, Opts) -> [Opt|Opts]. --spec listen_opt_type(atom()) -> fun((any()) -> any()) | [atom()]. listen_opt_type(shaper_rule) -> fun(V) -> ?WARNING_MSG("Listening option 'shaper_rule' of module ~s "