The hash %specific_items_requested is computed but never used anywhere. I went all the way back to v3.0.6 and couldn't find any sign that it has ever been used. # identify item-level requests my %specific_items_requested = map { $_->{itemnumber} => 1 } grep { defined($_->{itemnumber}) } @$hold_requests;
Created attachment 160652 [details] [review] Bug 35727 Remove unused code in HoldsQueue::MapItemsToHoldRequests Test plan: prove t/db_dependent/HoldsQueue.t
Created attachment 160664 [details] [review] Bug 35727 Remove unused code in HoldsQueue::MapItemsToHoldRequests Test plan: prove t/db_dependent/HoldsQueue.t Signed-off-by: David Nind <david@davidnind.com>
Created attachment 165081 [details] [review] Bug 35727 Remove unused code in HoldsQueue::MapItemsToHoldRequests Test plan: prove t/db_dependent/HoldsQueue.t Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed for 24.05! Well done everyone, thank you!
Not backported to 23.11.x