Skip to content

Commit 1ae1ffe

Browse files
committed
Remove or comment existing implementations
1 parent 589ca18 commit 1ae1ffe

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lib/elixir/lib/dynamic_supervisor.ex

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,15 +1136,6 @@ defmodule DynamicSupervisor do
11361136
]
11371137
end
11381138

1139-
@impl true
1140-
def format_status(:terminate, [_pdict, state]) do
1141-
state
1142-
end
1143-
1144-
def format_status(_, [_pdict, %{mod: mod} = state]) do
1145-
[data: [{~c"State", state}], supervisor: [{~c"Callback", mod}]]
1146-
end
1147-
11481139
## Helpers
11491140

11501141
@compile {:inline, call: 2}

lib/elixir/lib/gen_event.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@ defmodule GenEvent do
507507
{:ok, states, [name, handlers, hib]}
508508
end
509509

510+
# Keeping deprecated format_status/2 since the current implementation is not
511+
# compatible with format_status/1 and GenEvent is deprecated anyway
510512
@doc false
511513
def format_status(opt, status_data) do
512514
[pdict, sys_state, parent, _debug, [name, handlers, _hib]] = status_data

0 commit comments

Comments
 (0)