From 6bfb8fca2e73e024a57f277d0c2760b6bb12d2bd Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 17 May 2023 08:58:13 -0400 Subject: [PATCH] [Cleanup] Remove GetEscapingEntOnHateList() from hate_list.cpp/hate_list.h (#3353) # Notes - This is unused. --- zone/hate_list.cpp | 23 ----------------------- zone/hate_list.h | 1 - 2 files changed, 24 deletions(-) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 2abb5b8a9..18dcd98e0 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -617,29 +617,6 @@ Mob *HateList::GetRandomEntOnHateList(bool skip_mezzed) return nullptr; } -Mob *HateList::GetEscapingEntOnHateList() { - // function is still in design stage - - for (auto iter : list) { - if (!iter->entity_on_hatelist) - continue; - - if (!iter->entity_on_hatelist->IsFeared()) - continue; - - if (iter->entity_on_hatelist->IsRooted()) - continue; - if (iter->entity_on_hatelist->IsMezzed()) - continue; - if (iter->entity_on_hatelist->IsStunned()) - continue; - - return iter->entity_on_hatelist; - } - - return nullptr; -} - Mob *HateList::GetEscapingEntOnHateList(Mob *center, float range, bool first) { // function is still in design stage diff --git a/zone/hate_list.h b/zone/hate_list.h index c1d37ce73..ff15bbab0 100644 --- a/zone/hate_list.h +++ b/zone/hate_list.h @@ -46,7 +46,6 @@ public: Mob *GetEntWithMostHateOnList(Mob *center, Mob *skip = nullptr, bool skip_mezzed = false); Mob *GetRandomEntOnHateList(bool skip_mezzed = false); Mob *GetEntWithMostHateOnList(bool skip_mezzed = false); - Mob *GetEscapingEntOnHateList(); // returns first eligble entity Mob *GetEscapingEntOnHateList(Mob *center, float range = 0.0f, bool first = false); Bot* GetRandomBotOnHateList(bool skip_mezzed = false);