diff --git a/deps/rabbitmq_shovel/src/rabbit_local_shovel.erl b/deps/rabbitmq_shovel/src/rabbit_local_shovel.erl index e171ad575b..223e46cb89 100644 --- a/deps/rabbitmq_shovel/src/rabbit_local_shovel.erl +++ b/deps/rabbitmq_shovel/src/rabbit_local_shovel.erl @@ -598,10 +598,6 @@ settle(Op, DeliveryTag, Multiple, %% %% Returns a tuple of acknowledged pending acks and remaining pending acks. %% Sorts each group in the youngest-first order (descending by delivery tag). -%% The special case for 0 comes from the AMQP 0-9-1 spec: if the multiple field is set to 1 (true), -%% and the delivery tag is 0, this indicates acknowledgement of all outstanding messages (by a client). -collect_acks(UAMQ, 0, true) -> - {lists:reverse(?QUEUE:to_list(UAMQ)), ?QUEUE:new()}; collect_acks(UAMQ, DeliveryTag, Multiple) -> collect_acks([], [], UAMQ, DeliveryTag, Multiple).