From ff1557fef4fe8d8b458151c1c55a3d23d957b91a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 Aug 2018 15:59:52 -0300 Subject: [PATCH] Bug 21184: Remove GetBarcodeFromItemnumber Test plan: git grep GetBarcodeFromItemnumber should not return anything Signed-off-by: Josef Moravec Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- C4/Items.pm | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 6a8cb078d9..fa9c9ace57 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -74,7 +74,6 @@ BEGIN { GetHostItemsInfo GetItemnumbersForBiblio get_hostitemnumbers_of - GetBarcodeFromItemnumber GetHiddenItemnumbers ItemSafeToDelete DelItemCheck @@ -1307,24 +1306,6 @@ sub get_hostitemnumbers_of { return @returnhostitemnumbers; } - -=head2 GetBarcodeFromItemnumber - - $result = GetBarcodeFromItemnumber($itemnumber); - -=cut - -sub GetBarcodeFromItemnumber { - my ($itemnumber) = @_; - my $dbh = C4::Context->dbh; - - my $rq = - $dbh->prepare("SELECT barcode FROM items WHERE items.itemnumber=?"); - $rq->execute($itemnumber); - my ($result) = $rq->fetchrow; - return ($result); -} - =head2 GetHiddenItemnumbers my @itemnumbers_to_hide = GetHiddenItemnumbers(@items); -- 2.39.5