mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Remove useless type specs
This commit is contained in:
parent
3cc964fbcc
commit
e96bfbdbfa
@ -978,7 +978,6 @@ opt_type(_) ->
|
|||||||
c2s_protocol_options, c2s_tls_compression, resource_conflict,
|
c2s_protocol_options, c2s_tls_compression, resource_conflict,
|
||||||
disable_sasl_mechanisms].
|
disable_sasl_mechanisms].
|
||||||
|
|
||||||
-spec listen_opt_type(atom()) -> fun((any()) -> any()) | [atom()].
|
|
||||||
listen_opt_type(certfile = Opt) ->
|
listen_opt_type(certfile = Opt) ->
|
||||||
fun(S) ->
|
fun(S) ->
|
||||||
?WARNING_MSG("Listening option '~s' for ~s is deprecated, use "
|
?WARNING_MSG("Listening option '~s' for ~s is deprecated, use "
|
||||||
|
@ -340,7 +340,6 @@ change_shaper(#{shaper := ShaperName, server_host := ServerHost} = State,
|
|||||||
Shaper = acl:match_rule(ServerHost, ShaperName, jid:make(RServer)),
|
Shaper = acl:match_rule(ServerHost, ShaperName, jid:make(RServer)),
|
||||||
xmpp_stream_in:change_shaper(State, ejabberd_shaper:new(Shaper)).
|
xmpp_stream_in:change_shaper(State, ejabberd_shaper:new(Shaper)).
|
||||||
|
|
||||||
-spec listen_opt_type(atom()) -> fun((any()) -> any()) | [atom()].
|
|
||||||
listen_opt_type(certfile = Opt) ->
|
listen_opt_type(certfile = Opt) ->
|
||||||
fun(S) ->
|
fun(S) ->
|
||||||
?WARNING_MSG("Listening option '~s' for ~s is deprecated, use "
|
?WARNING_MSG("Listening option '~s' for ~s is deprecated, use "
|
||||||
|
@ -281,7 +281,6 @@ transform_listen_option({host, Host, Os}, Opts) ->
|
|||||||
transform_listen_option(Opt, Opts) ->
|
transform_listen_option(Opt, Opts) ->
|
||||||
[Opt|Opts].
|
[Opt|Opts].
|
||||||
|
|
||||||
-spec listen_opt_type(atom()) -> fun((any()) -> any()) | [atom()].
|
|
||||||
listen_opt_type(shaper_rule) ->
|
listen_opt_type(shaper_rule) ->
|
||||||
fun(V) ->
|
fun(V) ->
|
||||||
?WARNING_MSG("Listening option 'shaper_rule' of module ~s "
|
?WARNING_MSG("Listening option 'shaper_rule' of module ~s "
|
||||||
|
Loading…
Reference in New Issue
Block a user