aboutsummaryrefslogtreecommitdiff
path: root/src/gen_iq_handler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_iq_handler.erl')
-rw-r--r--src/gen_iq_handler.erl24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/gen_iq_handler.erl b/src/gen_iq_handler.erl
index 38aa32e36..cd94f0575 100644
--- a/src/gen_iq_handler.erl
+++ b/src/gen_iq_handler.erl
@@ -27,12 +27,9 @@
-author('alexey@process-one.net').
--behaviour(ejabberd_config).
-
%% API
-export([add_iq_handler/5, remove_iq_handler/3, handle/1, handle/2,
- check_type/1, transform_module_options/1,
- opt_type/1, start/1, get_features/2]).
+ start/1, get_features/2]).
%% Deprecated functions
-export([add_iq_handler/6, handle/5, iqdisc/1]).
-deprecated([{add_iq_handler, 6}, {handle, 5}, {iqdisc, 1}]).
@@ -135,29 +132,10 @@ process_iq(Module, Function, #iq{lang = Lang, sub_els = [El]} = IQ) ->
xmpp:make_error(IQ, xmpp:err_bad_request(Txt, Lang))
end.
--spec check_type(any()) -> no_queue.
-check_type(_Type) ->
- ?WARNING_MSG("Option 'iqdisc' is deprecated and has no effect anymore", []),
- no_queue.
-
-spec iqdisc(binary() | global) -> no_queue.
iqdisc(_Host) ->
no_queue.
--spec transform_module_options([{atom(), any()}]) -> [{atom(), any()}].
-
-transform_module_options(Opts) ->
- lists:map(
- fun({iqdisc, {queues, N}}) ->
- {iqdisc, N};
- (Opt) ->
- Opt
- end, Opts).
-
--spec opt_type(atom()) -> fun((any()) -> any()) | [atom()].
-opt_type(iqdisc) -> fun check_type/1;
-opt_type(_) -> [iqdisc].
-
%%====================================================================
%% Deprecated API
%%====================================================================