Remove unused Artist::FindMatch

It was used by an obsolete script.
This commit is contained in:
Mike Colagrosso 2024-01-15 19:53:15 -07:00 committed by Alex Cabal
parent 56ebdcab0f
commit 39db272cb1

View file

@ -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