Bug 678573: Remove unused variable |pollError| from nsSocketTransportService::DoPollIteration. r=jduell
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 16 Aug 2011 09:26:59 -0700
changeset 75399 50edc05d6ee883a4fa4f401aa296a1c1b960327b
parent 75398 604271b95a33764a36add2b957deabb55c0e45ca
child 75400 ea0c9306ef4afdac7421331217e0450fd095724c
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersjduell
bugs678573
milestone8.0a1
Bug 678573: Remove unused variable |pollError| from nsSocketTransportService::DoPollIteration. r=jduell
netwerk/base/src/nsSocketTransportService2.cpp
--- a/netwerk/base/src/nsSocketTransportService2.cpp
+++ b/netwerk/base/src/nsSocketTransportService2.cpp
@@ -673,19 +673,16 @@ nsSocketTransportService::DoPollIteratio
 {
     SOCKET_LOG(("STS poll iter [%d]\n", wait));
 
     PRInt32 i, count;
 
     //
     // poll loop
     //
-    PRBool pollError = PR_FALSE;
-
-    //
     // walk active list backwards to see if any sockets should actually be
     // idle, then walk the idle list backwards to see if any idle sockets
     // should become active.  take care to check only idle sockets that
     // were idle to begin with ;-)
     //
     count = mIdleCount;
     for (i=mActiveCount-1; i>=0; --i) {
         //---
@@ -723,17 +720,16 @@ nsSocketTransportService::DoPollIteratio
     SOCKET_LOG(("  calling PR_Poll [active=%u idle=%u]\n", mActiveCount, mIdleCount));
 
     // Measures seconds spent while blocked on PR_Poll
     PRUint32 pollInterval;
 
     PRInt32 n = Poll(wait, &pollInterval);
     if (n < 0) {
         SOCKET_LOG(("  PR_Poll error [%d]\n", PR_GetError()));
-        pollError = PR_TRUE;
     }
     else {
         //
         // service "active" sockets...
         //
         for (i=0; i<PRInt32(mActiveCount); ++i) {
             PRPollDesc &desc = mPollList[i+1];
             SocketContext &s = mActiveList[i];