This subroutine does too many things, we could use existing method from the Koha namespace to achieve the same goal.
There are only 2 calls, first on is in additem.pl Bug 18254 - Remove C4::Items::GetItemsByBiblioitemnumber call from additem.pl
GetItemsByBiblioitemnumber can't be found in master anymore.
*** This bug has been marked as a duplicate of bug 21202 ***