Remove unneeded HasTag() method

It was used in APCu search before the DB
This commit is contained in:
Mike Colagrosso 2024-07-05 18:46:01 -06:00 committed by Alex Cabal
parent 989dcab9f0
commit e5fc21ffd3

View file

@ -1420,16 +1420,6 @@ class Ebook{
return null; return null;
} }
public function HasTag(string $tag): bool{
foreach($this->Tags as $t){
if(strtolower($t->UrlName) == strtolower($tag)){
return true;
}
}
return false;
}
public function IsInCollection(string $collection): bool{ public function IsInCollection(string $collection): bool{
foreach($this->CollectionMemberships as $cm){ foreach($this->CollectionMemberships as $cm){
if(strtolower(Formatter::RemoveDiacritics($cm->Collection->Name)) == strtolower(Formatter::RemoveDiacritics($collection))){ if(strtolower(Formatter::RemoveDiacritics($cm->Collection->Name)) == strtolower(Formatter::RemoveDiacritics($collection))){