Author: toad
Date: 2008-07-31 13:06:46 +0000 (Thu, 31 Jul 2008)
New Revision: 21534

Modified:
   branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
trivial code cleanup

Modified: 
branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-07-31 12:56:19 UTC (rev 21533)
+++ branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-07-31 13:06:46 UTC (rev 21534)
@@ -927,10 +927,8 @@
                 * thread, then we will wake it up if we find keys... and we'll 
be scheduled again.
                 */
                final int MAX_KEYS = 20;
-               boolean found = false;
                Key[] keys = queue.removeKeyBefore(now, container, MAX_KEYS);
                if(keys == null) return false;
-               found = true;
                for(int j=0;j<keys.length;j++) {
                        Key key = keys[j];
                        if(persistent)
@@ -980,7 +978,7 @@
                        if(persistent)
                                container.deactivate(key, 5);
                }
-               return found;
+               return true;
        }

        public long countTransientQueuedRequests() {


Reply via email to