From 467968a08c50390edd89d03d59d3b5398a5419ed 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 Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- C4/HoldsQueue.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index e1d44ecf0f..ef021eaf48 100644 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -675,11 +675,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.39.5