From 67d93a99ff4080c4729c894a33a162c3600eed43 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Aug 2018 16:35:25 -0300 Subject: [PATCH] Bug 21171: Remove C4::Serials::is_barcode_in_use Bug 15168 removed C4::Serials::ItemizeSerials, it was the only place where C4::Serials::is_barcode_in_use was used. Test plan: git grep is_barcode_in_use should not return anything prove -r t/db_dependent/Serials* should return green --- C4/Serials.pm | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 0f6256e091..21aa3c8f3a 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -2520,26 +2520,6 @@ sub _numeration { return $string; } -=head2 is_barcode_in_use - -Returns number of occurrences of the barcode in the items table -Can be used as a boolean test of whether the barcode has -been deployed as yet - -=cut - -sub is_barcode_in_use { - my $barcode = shift; - my $dbh = C4::Context->dbh; - my $occurrences = $dbh->selectall_arrayref( - 'SELECT itemnumber from items where barcode = ?', - {}, $barcode - - ); - - return @{$occurrences}; -} - =head2 CloseSubscription Close a subscription given a subscriptionid -- 2.11.0