Bug 15629: Koha::Libraries - Remove GetBranchDetail
[koha.git] / C4 / Branch.pm
index 057a043..465a0e4 100644 (file)
@@ -33,7 +33,6 @@ BEGIN {
                &GetBranch
                &GetBranches
                &GetBranchesLoop
-               &GetBranchDetail
                &ModBranch
                &GetBranchInfo
                &mybranch
@@ -293,22 +292,6 @@ sub GetBranch {
     return $branch;
 }
 
-=head2 GetBranchDetail
-
-    $branch = &GetBranchDetail($branchcode);
-
-Given the branch code, the function returns a
-hashref for the corresponding row in the branches table.
-
-=cut
-
-sub GetBranchDetail {
-    my ($branchcode) = shift or return;
-    my $sth = C4::Context->dbh->prepare("SELECT * FROM branches WHERE branchcode = ?");
-    $sth->execute($branchcode);
-    return $sth->fetchrow_hashref();
-}
-
 =head2 GetBranchInfo
 
 $results = GetBranchInfo($branchcode);