From 39db272cb1319515467dd43610600af38192313f Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Mon, 15 Jan 2024 19:53:15 -0700 Subject: [PATCH] Remove unused Artist::FindMatch It was used by an obsolete script. --- lib/Artist.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Artist.php b/lib/Artist.php index efdec6e2..e9bcd804 100644 --- a/lib/Artist.php +++ b/lib/Artist.php @@ -132,18 +132,6 @@ class Artist extends PropertiesBase{ } } - public static function FindMatch(string $artistName): ?Artist{ - $result = Db::Query(' - SELECT a.* - from Artists a left join ArtistAlternateSpellings alt using (ArtistId) - where a.Name = ? or alt.AlternateSpelling = ? - order by a.DeathYear desc - limit 1; - ', [$artistName, $artistName], 'Artist'); - - return $result[0] ?? null; - } - public function Delete(): void{ Db::Query(' DELETE