From 315cd88a911eaa327df520e8533be82efea0c66f Mon Sep 17 00:00:00 2001 From: om Date: Sat, 8 Apr 2006 13:35:46 +0000 Subject: Remove some unused headers and unneeded casts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3846 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/timer.cpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/timer.cpp') diff --git a/src/timer.cpp b/src/timer.cpp index 0328d9b73..56cda27b2 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -17,19 +17,9 @@ using namespace std; #include "inspircd_config.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include #include "users.h" #include "ctables.h" #include "typedefs.h" @@ -61,7 +51,7 @@ void TickTimers(time_t TIME) */ for (timergroup::iterator y = x->begin(); y != x->end(); y++) { - InspTimer* n = (InspTimer*)*y; + InspTimer* n = *y; n->Tick(TIME); delete n; } @@ -89,7 +79,7 @@ void TickMissedTimers(time_t TIME) timergroup* x = found->second; for (timergroup::iterator y = x->begin(); y != x->end(); y++) { - InspTimer* z = (InspTimer*)*y; + InspTimer* z = *y; z->Tick(TIME); delete z; } -- cgit v1.2.3