]> git.koha-community.org Git - koha.git/commit
Bug 7034: de-nesting C4/Branch.pm
authorPaul Poulain <paul.poulain@biblibre.com>
Fri, 16 Sep 2011 16:09:57 +0000 (18:09 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 25 Oct 2011 23:25:36 +0000 (19:25 -0400)
commit54ce3fde2b73ce110a175a3bcabec52742b3b2d3
tree7d99621e95fc615adb4e3dc4590769d9efa5116e
parentf105fddc196ec64726d6256974fe1a2b5001e3d1
Bug 7034: de-nesting C4/Branch.pm

use C4::Koha was loaded only to call C4::Koha::get_infos_of in get_branchinfos_of

the sub get_branchinfos_of was used nowhere
(checked with "grep -R get_branchinfos_of *")
only one reference was made to get_branchinfos_of, in reserve/request.pl, but the sub was not used in fact (maybe removed previously & silently)

This patch removes sub get_branchinfos_of and use C4::Koha in C4::Branch, as well as the reference in request.pl and the t test

The patch doesn't remove use C4::Branch in reserve/request.pl, as it's still used for other subroutines.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 69732f5c62337a97269d8b0b09343805a970c6fa)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Branch.pm
reserve/request.pl
t/db_dependent/lib/KohaTest/Branch.pm