Skip to content

Commit

Permalink
Remove gen_mod:start_backend_module/3
Browse files Browse the repository at this point in the history
mod_pubsub is the last module to use the dynamic compilation,
and it is doing so in a direct way.
  • Loading branch information
chrzaszcz committed Apr 7, 2022
1 parent a6bdef3 commit 3bdde49
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/gen_mod.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
-export([
% Modules start & stop, do NOT use in the tests, use mongoose_modules API instead
start_module/3,
start_backend_module/3,
stop_module/2,
does_module_support/2,
config_spec/1,
Expand Down Expand Up @@ -169,11 +168,6 @@ is_common_test_running() ->
false
end.

%% @deprecated To be removed when mod_pubsub does not use it anymore
start_backend_module(Module, Opts, TrackedFuncs) ->
Backend = gen_mod:get_opt(backend, Opts, mnesia),
backend_module:create(Module, Backend, TrackedFuncs).

-spec is_app_running(_) -> boolean().
is_app_running(AppName) ->
%% Use a high timeout to prevent a false positive in a high load system
Expand Down

0 comments on commit 3bdde49

Please sign in to comment.