diff options
| -rw-r--r-- | src/rabbit_channel_sup.erl | 4 | ||||
| -rw-r--r-- | src/supervisor2.erl | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/rabbit_channel_sup.erl b/src/rabbit_channel_sup.erl index 7a7c7b7944..0be7b5661c 100644 --- a/src/rabbit_channel_sup.erl +++ b/src/rabbit_channel_sup.erl @@ -33,7 +33,7 @@ -behaviour(supervisor2). --export([start_link/7, stop/1, writer/1, framing_channel/1, channel/1]). +-export([start_link/7, writer/1, framing_channel/1, channel/1]). -export([init/1]). @@ -56,8 +56,6 @@ start_link(Sock, Channel, FrameMax, ReaderPid, Username, VHost, Collector) -> supervisor2:start_link(?MODULE, [Sock, Channel, FrameMax, ReaderPid, Username, VHost, Collector]). -stop(Pid) -> - supervisor2:stop(Pid). writer(Pid) -> hd(supervisor2:find_child(Pid, writer, worker, [rabbit_writer])). diff --git a/src/supervisor2.erl b/src/supervisor2.erl index be24e09bd2..55f16feeb1 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -40,7 +40,7 @@ start_child/2, restart_child/2, delete_child/2, terminate_child/2, which_children/1, find_child/4, - check_childspecs/1, stop/1]). + check_childspecs/1]). -export([behaviour_info/1]). @@ -127,9 +127,6 @@ check_childspecs(ChildSpecs) when is_list(ChildSpecs) -> end; check_childspecs(X) -> {error, {badarg, X}}. -stop(Supervisor) -> - gen_server:cast(Supervisor, stop). - %%% --------------------------------------------------- %%% %%% Initialize the supervisor. @@ -325,9 +322,6 @@ handle_call(which_children, _From, State) -> State#state.children), {reply, Resp, State}. -handle_cast(stop, State) -> - {stop, shutdown, State}; - %%% Hopefully cause a function-clause as there is no API function %%% that utilizes cast. handle_cast(null, State) -> |
