From 0f9a0accf17ba3a9f20d6a7575b51ed2cb09a73c Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 8 Jun 2025 01:07:44 +0200 Subject: Core/Misc: Kill AnyPlayerInObjectRangeCheck (duplicate of AnyUnitInObjectRangeCheck) --- src/server/game/Grids/Notifiers/GridNotifiers.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/server/game/Grids') diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.h b/src/server/game/Grids/Notifiers/GridNotifiers.h index 41a74f2fc4c..39ee9374f6c 100644 --- a/src/server/game/Grids/Notifiers/GridNotifiers.h +++ b/src/server/game/Grids/Notifiers/GridNotifiers.h @@ -1599,28 +1599,6 @@ namespace Trinity Customizer& i_customizer; }; - class AnyPlayerInObjectRangeCheck - { - public: - AnyPlayerInObjectRangeCheck(WorldObject const* obj, float range, bool reqAlive = true) : _obj(obj), _range(range), _reqAlive(reqAlive) { } - - bool operator()(Player* u) const - { - if (_reqAlive && !u->IsAlive()) - return false; - - if (!_obj->IsWithinDist(u, _range)) - return false; - - return true; - } - - private: - WorldObject const* _obj; - float _range; - bool _reqAlive; - }; - class AnyPlayerInPositionRangeCheck { public: -- cgit v1.2.3