From 10008faf0414ce3e170a5f7eb277d6bebc038e0e Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Tue, 19 Nov 2024 12:22:23 +0000 Subject: [PATCH] Bug 38483: C4::Heading::preferred_authorities is not used C4::Heading::preferred_authorities seems to be not used for ages (maybe never used?) Test plan: $ git grep preferred_authorities --> should return nothing Sponsored-by: Ignatianum University in Cracow Signed-off-by: Phil Ringnalda Signed-off-by: Emily Lamancusa --- C4/Heading.pm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/C4/Heading.pm b/C4/Heading.pm index 653cd9636d..9a491c8a89 100644 --- a/C4/Heading.pm +++ b/C4/Heading.pm @@ -151,22 +151,6 @@ sub authorities { return $results; } -=head2 preferred_authorities - - my $preferred_authorities = $heading->preferred_authorities; - -Return a list of authority records for headings -that are a preferred form of the heading. - -=cut - -sub preferred_authorities { - my $self = shift; - my $skipmetadata = shift || undef; - my ( $results, $total ) = _search( 'see-from', $skipmetadata ); - return $results; -} - =head2 valid_heading_subfield if (C4::Heading::valid_heading_subfield('100', 'e', '')) ... -- 2.34.1