From 652b75a749a43b9c130ce83978eeb8f00be02908 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Thu, 14 Nov 2019 13:44:52 +0000
Subject: [PATCH] Transport: Remove unused currentReceiveSecond (ticket #2661)

---
 .../java/src/net/i2p/router/transport/udp/PeerState.java   | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/router/java/src/net/i2p/router/transport/udp/PeerState.java b/router/java/src/net/i2p/router/transport/udp/PeerState.java
index 9e8a557480..4152a31dc1 100644
--- a/router/java/src/net/i2p/router/transport/udp/PeerState.java
+++ b/router/java/src/net/i2p/router/transport/udp/PeerState.java
@@ -80,8 +80,6 @@ public class PeerState {
     private long _clockSkew;
     private final Object _clockSkewLock = new Object();
 
-    /** what is the current receive second, for congestion control? */
-    private long _currentReceiveSecond;
     /** when did we last send them a packet? */
     private long _lastSendTime;
     /** when did we last send them a message that was ACKed */
@@ -352,7 +350,6 @@ public class PeerState {
         _transport = transport;
         long now = ctx.clock().now();
         _keyEstablishedTime = now;
-        _currentReceiveSecond = now - (now % 1000);
         _lastSendTime = now;
         _lastReceiveTime = now;
         _currentACKs = new ConcurrentHashSet<Long>();
@@ -459,8 +456,6 @@ public class PeerState {
      */
     public long getClockSkew() { return _clockSkew ; }
 
-    /** what is the current receive second, for congestion control? */
-    public long getCurrentReceiveSecond() { return _currentReceiveSecond; }
     /** when did we last send them a packet? */
     public long getLastSendTime() { return _lastSendTime; }
     /** when did we last send them a message that was ACKed? */
@@ -634,8 +629,6 @@ public class PeerState {
         }
     }
 
-    /** what is the current receive second, for congestion control? */
-    public void setCurrentReceiveSecond(long sec) { _currentReceiveSecond = sec; }
     /** when did we last send them a packet? */
     public void setLastSendTime(long when) { _lastSendTime = when; }
     /** when did we last receive a packet from them? */
-- 
GitLab