From 50c6991f499242838057534e2e22cdd39d26e911 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 Feb 2016 13:50:42 +0000 Subject: [PATCH] Bug 15796: Remove C4::Koha::get_itemtypeinfos_of This subroutine is no longer in use. Test plan: git grep get_itemtypeinfos_of should not return any results. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi Trivial and needed removal. Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- C4/Koha.pm | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index a795651359..d5d1501bf5 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -45,7 +45,6 @@ BEGIN { &GetItemTypes &getitemtypeinfo &GetItemTypesCategorized &GetItemTypesByCategory &GetSupportName &GetSupportList - &get_itemtypeinfos_of &getframeworks &getframeworkinfo &GetFrameworksLoop &getallthemes @@ -338,22 +337,6 @@ sub GetItemTypesByCategory { return @$tmp; } -sub get_itemtypeinfos_of { - my @itemtypes = @_; - - my $placeholders = join( ', ', map { '?' } @itemtypes ); - my $query = <<"END_SQL"; -SELECT itemtype, - description, - imageurl, - notforloan - FROM itemtypes - WHERE itemtype IN ( $placeholders ) -END_SQL - - return get_infos_of( $query, 'itemtype', undef, \@itemtypes ); -} - =head2 getframework $frameworks = &getframework(); -- 2.39.5