From 13ebe89fdc8530986006c5fe628d9507588f4608 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 30 Apr 2024 13:47:40 +0200 Subject: [PATCH] Remove unused format_status/2 callback that is deprecated in OTP 27 --- src/ejabberd_acme.erl | 5 +---- src/ejabberd_pkix.erl | 6 +----- src/mod_mix.erl | 5 +---- src/mod_mqtt_ws.erl | 5 +---- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/ejabberd_acme.erl b/src/ejabberd_acme.erl index 17e083bcb..4e997da9b 100644 --- a/src/ejabberd_acme.erl +++ b/src/ejabberd_acme.erl @@ -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 %%%=================================================================== diff --git a/src/ejabberd_pkix.erl b/src/ejabberd_pkix.erl index c3cb2049c..6a9f08e8a 100644 --- a/src/ejabberd_pkix.erl +++ b/src/ejabberd_pkix.erl @@ -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 %%%=================================================================== diff --git a/src/mod_mix.erl b/src/mod_mix.erl index 1c570c37f..a776250bd 100644 --- a/src/mod_mix.erl +++ b/src/mod_mix.erl @@ -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 %%%=================================================================== diff --git a/src/mod_mqtt_ws.erl b/src/mod_mqtt_ws.erl index 4525f9c0a..b9e1623b8 100644 --- a/src/mod_mqtt_ws.erl +++ b/src/mod_mqtt_ws.erl @@ -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 %%%===================================================================