From 2b87ffd80528c0d3072ae9872dd14333fa6dd677 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Mon, 8 Jan 2024 17:57:20 +0100 Subject: [PATCH] Bug 35727 Remove unused code in HoldsQueue::MapItemsToHoldRequests Test plan: prove t/db_dependent/HoldsQueue.t Signed-off-by: David Nind --- C4/HoldsQueue.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 5e555f4f95..464952a4b4 100644 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -406,11 +406,6 @@ sub MapItemsToHoldRequests { return unless scalar(@$hold_requests) > 0; return unless scalar(@$available_items) > 0; - # identify item-level requests - my %specific_items_requested = map { $_->{itemnumber} => 1 } - grep { defined($_->{itemnumber}) } - @$hold_requests; - map { $_->{_object} = Koha::Items->find( $_->{itemnumber} ) } @$available_items; my $libraries = {}; map { $libraries->{$_->id} = $_ } Koha::Libraries->search->as_list; -- 2.30.2