]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Clean up a unused reference to the statCounter.syscalls.polls removed counter
authorserassio <>
Sun, 17 Feb 2008 17:15:55 +0000 (17:15 +0000)
committerserassio <>
Sun, 17 Feb 2008 17:15:55 +0000 (17:15 +0000)
src/comm_select.cc

index 32934ff689ee1dc0a1d4a6a856071d15bbda8960..7c752dbc1e8fbfe9566f382a2d45ccb62264eaca 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm_select.cc,v 1.84 2008/02/12 23:02:13 rousskov Exp $
+ * $Id: comm_select.cc,v 1.85 2008/02/17 10:15:55 serassio Exp $
  *
  * DEBUG: section 5     Socket Functions
  *
@@ -231,11 +231,7 @@ comm_check_incoming_select_handlers(int nfds, int *fds)
 
     getCurrentTime();
 
-#if USE_POLL
-    statCounter.syscalls.polls++;
-#else
     statCounter.syscalls.selects++;
-#endif
 
     if (select(maxfd, &read_mask, &write_mask, NULL, &zero_tv) < 1)
         return incoming_sockets_accepted;
@@ -443,11 +439,7 @@ comm_select(int msec)
         for (;;) {
             poll_time.tv_sec = msec / 1000;
             poll_time.tv_usec = (msec % 1000) * 1000;
-#if USE_POLL
-            statCounter.syscalls.polls++;
-#else
             statCounter.syscalls.selects++;
-#endif
             num = select(maxfd, &readfds, &writefds, NULL, &poll_time);
             statCounter.select_loops++;
 
@@ -718,12 +710,7 @@ examine_select(fd_set * readfds, fd_set * writefds)
         else
             continue;
 
-#if USE_POLL
-        statCounter.syscalls.polls++;
-#else
         statCounter.syscalls.selects++;
-#endif
-
         errno = 0;
 
         if (!fstat(fd, &sb)) {