Skip to content

Commit

Permalink
Remove mongoose_commands, mongoose_api_admin and mod*_commands
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Sep 14, 2022
1 parent 4583d13 commit dbd74b5
Show file tree
Hide file tree
Showing 23 changed files with 22 additions and 3,438 deletions.
3 changes: 1 addition & 2 deletions big_tests/tests/inbox_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ insert_parallels(Gs) ->

inbox_modules(Backend) ->
[
{mod_inbox, inbox_opts(Backend)},
{mod_inbox_commands, #{}}
{mod_inbox, inbox_opts(Backend)}
].

muclight_modules() ->
Expand Down
6 changes: 0 additions & 6 deletions rel/files/mongooseim.toml
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,10 @@
[modules.mod_disco]
users_can_see_hidden_services = false

[modules.mod_commands]

{{#mod_cache_users}}
[modules.mod_cache_users]
{{{mod_cache_users}}}
{{/mod_cache_users}}
[modules.mod_muc_commands]

[modules.mod_muc_light_commands]

{{#mod_last}}
[modules.mod_last]
{{{mod_last}}}
Expand Down
1 change: 0 additions & 1 deletion src/ejabberd_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ start(normal, _Args) ->
ejabberd_node_id:start(),
ejabberd_ctl:init(),
ejabberd_commands:init(),
mongoose_commands:init(),
mongoose_graphql_commands:start(),
mongoose_config:start(),
mongoose_router:start(),
Expand Down
2 changes: 1 addition & 1 deletion src/ejabberd_cowboy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
-export([ref/1, reload_dispatch/1]).
-export([start_cowboy/4, start_cowboy/2, stop_cowboy/1]).

-ignore_xref([behaviour_info/1, process/1, ref/1, socket_type/0, start_cowboy/2,
-ignore_xref([behaviour_info/1, process/1, ref/1, reload_dispatch/1, socket_type/0, start_cowboy/2,
start_cowboy/4, start_link/1, start_listener/2, start_listener/1, stop_cowboy/1]).

-include("mongoose.hrl").
Expand Down
2 changes: 1 addition & 1 deletion src/inbox/mod_inbox.erl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ process_inbox_boxes(Config = #{boxes := Boxes}) ->
%% Cleaner gen_server callbacks
start_cleaner(HostType, #{bin_ttl := TTL, bin_clean_after := Interval}) ->
Name = gen_mod:get_module_proc(HostType, ?MODULE),
WOpts = #{host_type => HostType, action => fun mod_inbox_commands:flush_global_bin/2,
WOpts = #{host_type => HostType, action => fun mod_inbox_api:flush_global_bin/2,
opts => TTL, interval => Interval},
MFA = {mongoose_collector, start_link, [Name, WOpts]},
ChildSpec = {Name, MFA, permanent, 5000, worker, [?MODULE]},
Expand Down
61 changes: 0 additions & 61 deletions src/inbox/mod_inbox_commands.erl

This file was deleted.

Loading

0 comments on commit dbd74b5

Please sign in to comment.