Skip to content

Commit 1e4010f

Browse files
committed
remove old custom format_status
Signed-off-by: Alejandro M. Ramallo <[email protected]>
1 parent e3d1952 commit 1e4010f

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

src/acceptor_pool.erl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
-export([handle_cast/2]).
7575
-export([handle_info/2]).
7676
-export([code_change/3]).
77-
-export([format_status/2]).
77+
%% -export([format_status/2]).
7878
-export([terminate/2]).
7979

8080
-type pool() :: pid() | atom() | {atom(), node()} | {via, module(), any()} |
@@ -314,11 +314,11 @@ code_change(_, #state{mod=Mod, args=Args} = State, _) ->
314314
throw:Result -> change_init(Result, State)
315315
end.
316316

317-
%% @private
318-
format_status(terminate, [_, State]) ->
319-
State;
320-
format_status(_, [_, #state{mod=Mod} = State]) ->
321-
[{data, [{"State", State}]}, {supervisor, [{"Callback", Mod}]}].
317+
%% %% @private
318+
%% format_status(terminate, [_, State]) ->
319+
%% State;
320+
%% format_status(_, [_, #state{mod=Mod} = State]) ->
321+
%% [{data, [{"State", State}]}, {supervisor, [{"Callback", Mod}]}].
322322

323323
%% @private
324324
terminate(_, State) ->

src/partisan_peer_discovery_agent.erl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
-export([callback_mode/0]).
5656
-export([terminate/3]).
5757
-export([code_change/4]).
58-
-export([format_status/2]).
5958

6059
%% gen_statem states
6160
-export([enabled/3]).
@@ -229,14 +228,6 @@ code_change(_OldVsn, StateName, State, _Extra) ->
229228
{ok, StateName, State}.
230229

231230

232-
%% Dialyzer does not know the existence of record_info
233-
-dialyzer([{nowarn_function, format_status/2}]).
234-
235-
format_status(_Opts, [_PDict, StateName, #state{} = State]) ->
236-
maps:put(state, StateName, ?RECORD_TO_MAP(State)).
237-
238-
239-
240231
%% =============================================================================
241232
%% STATE FUNCTIONS
242233
%% =============================================================================

0 commit comments

Comments
 (0)