Bug 16428: [QA Follow-up] Useless call to GetMarcStructure in _build_default_values_f...
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 11 May 2016 13:47:46 +0000 (15:47 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jun 2016 16:43:30 +0000 (16:43 +0000)
The routine calls GetMarcStructure and does not use its return value
after all.

Test plan:
Run t/db_dependent/Items.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Items.pm

index 8ee4169..651e590 100644 (file)
@@ -455,7 +455,6 @@ sub _build_default_values_for_mod_marc {
     my ($frameworkcode) = @_;
     return $default_values_for_mod_from_marc{$frameworkcode}
       if exists $default_values_for_mod_from_marc{$frameworkcode};
-    my $marc_structure = C4::Biblio::GetMarcStructure( 1, $frameworkcode );
     my $default_values = {
         barcode                  => undef,
         booksellerid             => undef,