From 0810577d02c674cfe653a77a94d153f52c7e7bed Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 17 May 2017 12:33:52 +0000 Subject: [PATCH] Bug 18606: Get rid of isItemInThisCollection --- C4/RotatingCollections.pm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/C4/RotatingCollections.pm b/C4/RotatingCollections.pm index cc45eb7..7a97cdb 100644 --- a/C4/RotatingCollections.pm +++ b/C4/RotatingCollections.pm @@ -51,27 +51,6 @@ BEGIN { ); } -=head2 isItemInThisCollection - - $inCollection = isItemInThisCollection( $itemnumber, $colId ); - -=cut - -sub isItemInThisCollection { - my ( $itemnumber, $colId ) = @_; - - my $dbh = C4::Context->dbh; - - my $sth = $dbh->prepare( -"SELECT COUNT(*) as inCollection FROM collections_tracking WHERE itemnumber = ? AND colId = ?" - ); - $sth->execute( $itemnumber, $colId ) or return (0); - - my $row = $sth->fetchrow_hashref; - - return $$row{'inCollection'}; -} - =head2 isItemInAnyCollection $inCollection = isItemInAnyCollection( $itemnumber ); -- 2.1.4