From 6272de145bf0fc281df5184e32f558ce622db28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Fri, 1 Nov 2024 14:23:45 +0100 Subject: [PATCH] Remove deprecated gen_server callback format_status/2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The callback `format_status(Opt, StatusData)` is deprecated from OTP 27 and give build warnings. Remove them since they are optional and no-op's in our case. Signed-off-by: Björn Svensson --- src/ered.erl | 5 +---- src/ered_client.erl | 5 +---- src/ered_cluster.erl | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/ered.erl b/src/ered.erl index bba2e32..0c0752a 100644 --- a/src/ered.erl +++ b/src/ered.erl @@ -21,7 +21,7 @@ %% 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]). -export_type([opt/0, command/0, @@ -334,9 +334,6 @@ terminate(_Reason, State) -> code_change(_OldVsn, State, _Extra) -> {ok, State}. -format_status(_Opt, Status) -> - Status. - %%%=================================================================== %%% Internal functions %%%=================================================================== diff --git a/src/ered_client.erl b/src/ered_client.erl index caf4bcb..aa14d6f 100644 --- a/src/ered_client.erl +++ b/src/ered_client.erl @@ -16,7 +16,7 @@ %% 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]). -export_type([info_msg/0, addr/0, @@ -289,9 +289,6 @@ terminate(Reason, State) -> code_change(_OldVsn, State, _Extra) -> {ok, State}. -format_status(_Opt, Status) -> - Status. - %%%=================================================================== %%% Internal functions %%%=================================================================== diff --git a/src/ered_cluster.erl b/src/ered_cluster.erl index e894648..a6dbb56 100644 --- a/src/ered_cluster.erl +++ b/src/ered_cluster.erl @@ -17,7 +17,7 @@ %% 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]). -export_type([opt/0, @@ -396,9 +396,6 @@ terminate(_Reason, State) -> code_change(_OldVsn, State, _Extra) -> {ok, State}. -format_status(_Opt, Status) -> - Status. - %%%=================================================================== %%% Internal functions %%%===================================================================