From: Evgeny Khramtsov Date: Tue, 18 Sep 2018 10:24:06 +0000 (+0300) Subject: Remove useless type specs X-Git-Tag: 18.09~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e96bfbdbfad5c2932beb34d23f78ac3fa58a34dc;p=ejabberd Remove useless type specs --- 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 "