diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-08 13:35:46 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-08 13:35:46 +0000 |
commit | 315cd88a911eaa327df520e8533be82efea0c66f (patch) | |
tree | eed106442e334f706c387bf61c66d493086fc8d3 /src/timer.cpp | |
parent | ab24f0dca4050e6bd11ace131b7ac7bb53d42bae (diff) |
Remove some unused headers and unneeded casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3846 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/timer.cpp')
-rw-r--r-- | src/timer.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
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 <sys/time.h> -#include <sys/resource.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <string> -#include <unistd.h> -#include <fcntl.h> -#include <poll.h> -#include <sstream> -#include <iostream> -#include <fstream> -#include <stdexcept> +#include <time.h> +#include <vector> +#include <map> #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; } |