Author: toad
Date: 2008-02-28 16:42:38 +0000 (Thu, 28 Feb 2008)
New Revision: 18207

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Delete scheduleDelay()

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-02-28 
16:42:06 UTC (rev 18206)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-02-28 
16:42:38 UTC (rev 18207)
@@ -45,8 +45,6 @@
        private long _roundTripTime = 500, _totalPackets, _droppedPackets;
        private float _simulatedWindowSize = 2;
        private final int PACKET_SIZE;
-       /** Last return of scheduleDelay(); time before which no packet may be 
sent */
-       private long lastScheduledDelay;
        private boolean slowStart = true;
        /** Total packets in flight, including waiting for bandwidth from the 
central throttle. */
        private int _packetsInFlight;
@@ -137,18 +135,6 @@
                                + (((float) _droppedPackets / (float) 
_totalPackets)) + ") for "+_peer;
        }

-       /**
-        * Schedule a delay. This method implements the global congestion 
window for a given
-        * peer.
-        * @param now The current time, in millis.
-        * @return The time, in millis, after which a packet may be sent.
-        */
-       public synchronized long scheduleDelay(long now) {
-               if(now > lastScheduledDelay) lastScheduledDelay = now;
-               lastScheduledDelay += getDelay();
-               return lastScheduledDelay;
-       }
-
        public synchronized long getRoundTripTime() {
                return _roundTripTime;
        }


Reply via email to