From 8039d29ac8244dbc6cf2db2c48631c502a8d88fd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 Aug 2018 15:53:54 -0300 Subject: [PATCH] Bug 21183: Remove GetItemnumberFromBarcode Test plan: git grep GetItemnumberFromBarcode should not return anything Signed-off-by: Josef Moravec Signed-off-by: Katrin Fischer --- C4/Items.pm | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index bf464c3..83a5667 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -75,7 +75,6 @@ BEGIN { GetHostItemsInfo GetItemnumbersForBiblio get_hostitemnumbers_of - GetItemnumberFromBarcode GetBarcodeFromItemnumber GetHiddenItemnumbers ItemSafeToDelete @@ -1361,23 +1360,6 @@ sub get_hostitemnumbers_of { } -=head2 GetItemnumberFromBarcode - - $result = GetItemnumberFromBarcode($barcode); - -=cut - -sub GetItemnumberFromBarcode { - my ($barcode) = @_; - my $dbh = C4::Context->dbh; - - my $rq = - $dbh->prepare("SELECT itemnumber FROM items WHERE items.barcode=?"); - $rq->execute($barcode); - my ($result) = $rq->fetchrow; - return ($result); -} - =head2 GetBarcodeFromItemnumber $result = GetBarcodeFromItemnumber($itemnumber); -- 2.1.4