Bug 21184: Remove GetBarcodeFromItemnumber

Test plan:
  git grep GetBarcodeFromItemnumber
should not return anything

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-08-06 15:59:52 -03:00 committed by Nick Clemens
parent 62a075987a
commit ff1557fef4

View file

@ -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);