summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-01-13 03:10:30 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-01-13 03:10:30 +0000
commitc74e4426bddaf2d6dbf0a22f688b5402a54d1c54 (patch)
treebdda58ba722e02400c87a45e2eceed7278bd83a6
parenta5e116ca4570207934455163fbe3fac8d53d55d7 (diff)
downloadrabbitmq-server-c74e4426bddaf2d6dbf0a22f688b5402a54d1c54.tar.gz
remove redundant clause
confirm/3 is 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 a2a22f8a..7a19376b 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, undefined, State = #ch{unconfirmed = UC,
queues_for_msg = QFM}) ->
MsgSeqNos1 = [MSN || MSN <- MsgSeqNos, gb_sets:is_element(MSN, UC)],