summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-01-13 03:26:56 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-01-13 03:26:56 +0000
commit2fec5acb77374d44eda0bcf0022c6b7919880459 (patch)
tree973b8634cfc489d962e8c0cb508538ce4237d7f0
parent00dbba335e855f53dd60fcd97582f13486c6a963 (diff)
downloadrabbitmq-server-bug23684.tar.gz
remove redundant clausebug23684
confirm/3 is now only ever called once confirm mode has been enabled, and since we can't turn that mode off there is no point in checking.
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 5badfb05..2764a591 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -473,8 +473,6 @@ queue_blocked(QPid, State = #ch{blocking = Blocking}) ->
confirm([], _QPid, State) ->
State;
-confirm(_MsgSeqNos, _QPid, State = #ch{confirm_enabled = false}) ->
- State;
confirm(MsgSeqNos, QPid, State) ->
{DoneMessages, State1} =
lists:foldl(