diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2011-01-13 03:10:30 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-01-13 03:10:30 +0000 |
| commit | be5d43b675628e3d91dca154535f9e8c5b26b287 (patch) | |
| tree | bdda58ba722e02400c87a45e2eceed7278bd83a6 | |
| parent | 92a62a0310d74765ca3b36077ebf3fa5c7c2496b (diff) | |
| download | rabbitmq-server-git-be5d43b675628e3d91dca154535f9e8c5b26b287.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.erl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index a2a22f8a07..7a19376b88 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)], |
