mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 06:45:14 -04:00
Remove unused Artist::FindMatch
It was used by an obsolete script.
This commit is contained in:
parent
56ebdcab0f
commit
39db272cb1
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue