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
commit046f3fc9e6d134f28dececad37f63ef93ffd3455 (patch)
tree973b8634cfc489d962e8c0cb508538ce4237d7f0
parentc0f0300915f48a9ce78139c580a074ab8626fe0e (diff)
downloadrabbitmq-server-git-046f3fc9e6d134f28dececad37f63ef93ffd3455.tar.gz
remove redundant clause
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 5badfb050d..2764a59195 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(