From e5fc21ffd37bb81d00bbbf19b60074d4bfcd9f03 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Fri, 5 Jul 2024 18:46:01 -0600 Subject: [PATCH] Remove unneeded HasTag() method It was used in APCu search before the DB --- lib/Ebook.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/Ebook.php b/lib/Ebook.php index a02a7f6b..52034876 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -1420,16 +1420,6 @@ class Ebook{ 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{ foreach($this->CollectionMemberships as $cm){ if(strtolower(Formatter::RemoveDiacritics($cm->Collection->Name)) == strtolower(Formatter::RemoveDiacritics($collection))){