summaryrefslogtreecommitdiff
path: root/src/rabbit_channel_sup.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-07-29 13:50:46 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-07-29 13:50:46 +0100
commite3ebf90ce247f9addc61042faf9f4d3b9f2b2235 (patch)
tree14d899234821dbe3b17975218bb59c83e36925d7 /src/rabbit_channel_sup.erl
parent3537756d0397431e4ffa043a48ba68db8d5f4f12 (diff)
downloadrabbitmq-server-e3ebf90ce247f9addc61042faf9f4d3b9f2b2235.tar.gz
Remove unnecessary stop code which was never being called
Diffstat (limited to 'src/rabbit_channel_sup.erl')
-rw-r--r--src/rabbit_channel_sup.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_channel_sup.erl b/src/rabbit_channel_sup.erl
index 7a7c7b79..0be7b566 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])).