25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Remove unused format_status/2 callback that is deprecated in OTP 27

This commit is contained in:
Badlop 2024-04-30 13:47:40 +02:00
parent c7c3cc10c5
commit 13ebe89fdc
4 changed files with 4 additions and 17 deletions

View File

@ -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").
@ -158,9 +158,6 @@ terminate(_Reason, _State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
format_status(_Opt, Status) ->
Status.
%%%===================================================================
%%% Internal functions
%%%===================================================================

View File

@ -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)).
@ -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
%%%===================================================================

View File

@ -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,
@ -340,9 +340,6 @@ terminate(_Reason, State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
format_status(_Opt, Status) ->
Status.
%%%===================================================================
%%% Internal functions
%%%===================================================================

View File

@ -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").
@ -132,9 +132,6 @@ terminate(_Reason, State) ->
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
format_status(_Opt, Status) ->
Status.
%%%===================================================================
%%% Internal functions
%%%===================================================================