From 2fec5acb77374d44eda0bcf0022c6b7919880459 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 13 Jan 2011 03:26:56 +0000 Subject: 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. --- src/rabbit_channel.erl | 2 -- 1 file changed, 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( -- cgit v1.2.1