From f8273966f02e1e4e98198939795cca2e519d2f6c 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 cc45eb79ad..7a97cdb22a 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.11.0