]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove some unused headers and unneeded casts
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 8 Apr 2006 13:35:46 +0000 (13:35 +0000)
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 8 Apr 2006 13:35:46 +0000 (13:35 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3846 e03df62e-2008-0410-955e-edbf42e46eb7

src/timer.cpp

index 0328d9b73ea577768c1d0d49dd734f3e826ae902..56cda27b2b4fbad4c28545fe88d8666849b77035 100644 (file)
 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;
                        }