aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiersImpl.h
diff options
context:
space:
mode:
authorXanadu <none@none>2010-05-30 04:23:27 +0200
committerXanadu <none@none>2010-05-30 04:23:27 +0200
commit7fbeef3d09dac072aec046519a90d95f0572fcf6 (patch)
tree9808843d603e64ef863e823c89b764d0bab8dcf1 /src/game/GridNotifiersImpl.h
parent14382dd1fe74c500d26b597e8de1498dcc30da68 (diff)
Cleaned up and unified various sort predicates and moved them to Trinity namespace, replaced priority queues with sorts and purged some unused code.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GridNotifiersImpl.h')
-rw-r--r--src/game/GridNotifiersImpl.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h
index f4267ff7048..26a9c0bd328 100644
--- a/src/game/GridNotifiersImpl.h
+++ b/src/game/GridNotifiersImpl.h
@@ -450,28 +450,4 @@ void Trinity::LocalizedPacketListDo<Builder>::operator()(Player* p)
p->SendDirectMessage((*data_list)[i]);
}
-struct ObjectDistanceOrder : public std::binary_function<const WorldObject, const WorldObject, bool>
-{
- const Unit* m_pSource;
-
- ObjectDistanceOrder(const Unit* pSource) : m_pSource(pSource) {};
-
- bool operator()(const WorldObject* pLeft, const WorldObject* pRight) const
- {
- return m_pSource->GetDistanceOrder(pLeft, pRight);
- }
-};
-
-struct ObjectDistanceOrderReversed : public std::binary_function<const WorldObject, const WorldObject, bool>
-{
- const Unit* m_pSource;
-
- ObjectDistanceOrderReversed(const Unit* pSource) : m_pSource(pSource) {};
-
- bool operator()(const WorldObject* pLeft, const WorldObject* pRight) const
- {
- return !m_pSource->GetDistanceOrder(pLeft, pRight);
- }
-};
-
#endif // TRINITY_GRIDNOTIFIERSIMPL_H