From d5a453b6638be81e4a69269e86bd508476305f14 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 20 Mar 2013 19:23:32 +0100 Subject: Improve TimerManager Instead of adding timers into a vector and sorting them every time a timer is added, use a multimap --- include/timers.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include') diff --git a/include/timers.h b/include/timers.h index 49490b09d..229333596 100644 --- a/include/timers.h +++ b/include/timers.h @@ -90,7 +90,7 @@ class CoreExport TimerManager { /** A list of timers */ - static std::vector Timers; + static std::multimap Timers; public: /** Add a timer to the list * @param t A Timer derived class to add @@ -106,10 +106,6 @@ class CoreExport TimerManager * @param ctime The current time */ static void TickTimers(time_t ctime = Anope::CurTime); - - /** Compares two timers - */ - static bool TimerComparison(Timer *one, Timer *two); }; #endif // TIMERS_H -- cgit