From e69fefda62c743b07447e2f4ec7c6b5a254c60e4 Mon Sep 17 00:00:00 2001 From: zab2 <zab2@mail.i2p> Date: Wed, 9 Oct 2013 14:06:16 +0000 Subject: [PATCH] cleanup: remove boolean parameter that is always true --- .../java/src/net/i2p/client/streaming/Connection.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/streaming/java/src/net/i2p/client/streaming/Connection.java b/apps/streaming/java/src/net/i2p/client/streaming/Connection.java index d1dd9692f7..4fcdfd5d8d 100644 --- a/apps/streaming/java/src/net/i2p/client/streaming/Connection.java +++ b/apps/streaming/java/src/net/i2p/client/streaming/Connection.java @@ -1254,7 +1254,7 @@ class Connection { } public long getNextSendTime() { return _nextSendTime; } - public void timeReached() { retransmit(true); } + public void timeReached() { retransmit(); } /** * Retransmit the packet if we need to. * @@ -1264,11 +1264,9 @@ class Connection { * * don't synchronize this, deadlock with ackPackets->ackReceived->SimpleTimer2.cancel * - * @param penalize true if this retransmission is caused by a timeout, false if we - * are just sending this packet instead of an ACK * @return true if the packet was sent, false if it was not */ - public boolean retransmit(boolean penalize) { + public boolean retransmit() { if (_packet.getAckTime() > 0) return false; @@ -1332,7 +1330,7 @@ class Connection { int newWindowSize = getOptions().getWindowSize(); - if (penalize && _ackSinceCongestion) { + if (_ackSinceCongestion) { // only shrink the window once per window if (_packet.getSequenceNum() > _lastCongestionHighestUnacked) { congestionOccurred(); -- GitLab