Remove unused parameter.

This commit is contained in:
akwizgran
2020-06-05 12:05:21 +01:00
parent ef5b91da89
commit f663bf8667
4 changed files with 4 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ class AndroidBluetoothTransportConnection
try { try {
socket.close(); socket.close();
} finally { } finally {
connectionLimiter.connectionClosed(this, exception); connectionLimiter.connectionClosed(this);
} }
} }
} }

View File

@@ -36,10 +36,8 @@ interface BluetoothConnectionLimiter {
/** /**
* Informs the limiter that the given connection has been closed. * Informs the limiter that the given connection has been closed.
*
* @param exception True if the connection was closed due to an exception.
*/ */
void connectionClosed(DuplexTransportConnection conn, boolean exception); void connectionClosed(DuplexTransportConnection conn);
/** /**
* Informs the limiter that all connections have been closed. * Informs the limiter that all connections have been closed.

View File

@@ -90,10 +90,8 @@ class BluetoothConnectionLimiterImpl implements BluetoothConnectionLimiter {
} }
@Override @Override
public void connectionClosed(DuplexTransportConnection conn, public void connectionClosed(DuplexTransportConnection conn) {
boolean exception) {
synchronized (lock) { synchronized (lock) {
if (exception) LOG.info("Connection failed");
countStableConnections(clock.currentTimeMillis()); countStableConnections(clock.currentTimeMillis());
Iterator<ConnectionRecord> it = connections.iterator(); Iterator<ConnectionRecord> it = connections.iterator();
while (it.hasNext()) { while (it.hasNext()) {

View File

@@ -45,7 +45,7 @@ class JavaBluetoothTransportConnection
try { try {
stream.close(); stream.close();
} finally { } finally {
connectionLimiter.connectionClosed(this, exception); connectionLimiter.connectionClosed(this);
} }
} }
} }