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 {
socket.close();
} 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.
*
* @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.

View File

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

View File

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