From 217b004d58e93349e8a8a1795236a6fbe648f470 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 31 Oct 2024 10:32:02 +0000 Subject: [PATCH] Bug 35570: (QA follow-up) Remove unused variable definitions FAIL Koha/ILL/Backend/Standard.pm FAIL critic "$marc_isbn" is declared but not used at line 1179, column 5. Unused variables clutter code and make it harder to read. "$marc_author" is declared but not used at line 1180, column 5. Unused variables clutter code and make it harder to read. "$marc_title" is declared but not used at line 1181, column 5. Unused variables clutter code and make it harder to read. Signed-off-by: Katrin Fischer --- Koha/ILL/Backend/Standard.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index bb03a9bd33..d11d6f338d 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -1177,10 +1177,6 @@ sub _standard_request2biblio { ($record) = MarcToUTF8Record( $record, $marcflavour ); } - my $marc_isbn; - my $marc_author; - my $marc_title; - if( $marcflavour eq 'MARC21' ) { $record->append_fields(MARC::Field->new( '020', '', '', a => $isbn )) if $isbn; $record->append_fields(MARC::Field->new( '100', '1', '', a => $author )) if $author;