From 8c2bd7cc635ce14750729455284e4f76fb9fd920 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Feb 2006 20:00:02 +0000 Subject: Moved timer stuff from OnBackgroundTimer to InspTimer derivative git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3305 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/timer.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/timer.cpp') diff --git a/src/timer.cpp b/src/timer.cpp index 31c2c6a13..b804920e5 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -30,7 +30,6 @@ using namespace std; #include #include #include -#include "timer.h" #include "inspircd.h" #include "inspircd_io.h" #include "inspstring.h" @@ -50,21 +49,17 @@ void TickTimers(time_t TIME) if (found != Timers.end()) { - log(DEBUG,"timer.cpp: There are timers to trigger"); timergroup* x = found->second; /* * There are pending timers to trigger */ for (timergroup::iterator y = x->begin(); y != x->end(); y++) { - log(DEBUG,"timer.cpp: Triggering a timer"); InspTimer* n = (InspTimer*)*y; n->Tick(TIME); - log(DEBUG,"timer.cpp: TICK!"); delete n; } - log(DEBUG,"timer.cpp: Done triggering timers, tidying up"); Timers.erase(found); delete x; } @@ -72,20 +67,16 @@ void TickTimers(time_t TIME) void AddTimer(InspTimer* T) { - log(DEBUG,"timer.cpp: Adding timer"); - timergroup* x = NULL; timerlist::iterator found = Timers.find(T->GetTimer()); if (found != Timers.end()) { - log(DEBUG,"timer.cpp: Add timer to existing group"); x = found->second; } else { - log(DEBUG,"timer.cpp: Add timer to new group"); x = new timergroup; Timers[T->GetTimer()] = x; } -- cgit v1.2.3