Skip to content

Commit

Permalink
Remove unused format_status/2 callback that is deprecated in OTP 27
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Apr 30, 2024
1 parent c7c3cc1 commit 13ebe89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
5 changes: 1 addition & 4 deletions src/ejabberd_acme.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
revoke_certificate/1, list_certificates/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3, format_status/2]).
terminate/2, code_change/3]).

-include("logger.hrl").
-include("ejabberd_commands.hrl").
Expand Down Expand Up @@ -158,9 +158,6 @@ terminate(_Reason, _State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.

format_status(_Opt, Status) ->
Status.

%%%===================================================================
%%% Internal functions
%%%===================================================================
Expand Down
6 changes: 1 addition & 5 deletions src/ejabberd_pkix.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
-export([ejabberd_started/0, config_reloaded/0, cert_expired/2]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3, format_status/2]).
terminate/2, code_change/3]).

-include("logger.hrl").
-define(CALL_TIMEOUT, timer:minutes(1)).
Expand Down Expand Up @@ -225,10 +225,6 @@ terminate(_Reason, State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.

-spec format_status(normal | terminate, list()) -> term().
format_status(_Opt, Status) ->
Status.

%%%===================================================================
%%% Internal functions
%%%===================================================================
Expand Down
5 changes: 1 addition & 4 deletions src/mod_mix.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
-export([mod_doc/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3, format_status/2]).
terminate/2, code_change/3]).
%% Hooks
-export([process_disco_info/1,
process_disco_items/1,
Expand Down Expand Up @@ -340,9 +340,6 @@ terminate(_Reason, State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.

format_status(_Opt, Status) ->
Status.

%%%===================================================================
%%% Internal functions
%%%===================================================================
Expand Down
5 changes: 1 addition & 4 deletions src/mod_mqtt_ws.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
-export([peername/1, setopts/2, send/2, close/1]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3, format_status/2]).
terminate/2, code_change/3]).

-include_lib("xmpp/include/xmpp.hrl").
-include("ejabberd_http.hrl").
Expand Down Expand Up @@ -132,9 +132,6 @@ terminate(_Reason, State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.

format_status(_Opt, Status) ->
Status.

%%%===================================================================
%%% Internal functions
%%%===================================================================
Expand Down

0 comments on commit 13ebe89

Please sign in to comment.