]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Removed obsolete code in trustdotimeout().
authorGunnar Beutner <redacted>
Mon, 24 Jun 2013 21:54:50 +0000 (23:54 +0200)
committerGunnar Beutner <redacted>
Mon, 24 Jun 2013 21:54:50 +0000 (23:54 +0200)
--HG--
branch : shroudtrusts

trusts/trusts_policy.c

index 375b995629f36b2948110a833f9098f11ce0bc85..d6db60dbe1d8bf8cef3688e5c0e6dd99dfe3d583 100644 (file)
@@ -330,13 +330,8 @@ static void processtrustclient(int fd, short events) {
 
 static void trustdotimeout(void *arg) {
   time_t t = time(NULL);
-  static time_t last_timeout_check = 0;
   trustsocket **pnext, *next;
 
-  /* every 5s process the entire thing for timeouts */
-  if(t - last_timeout_check > 5)
-    last_timeout_check = t;
-
   pnext = &tslist;
     
   for(trustsocket *sock=tslist;sock;) {