Remove some superfluous checks

here
cpfeiffer 2015-10-03 23:52:33 +02:00
parent 321c0ff125
commit 5b8bf468f5
1 changed files with 0 additions and 8 deletions

View File

@ -401,10 +401,6 @@ public final class BtLEQueue {
if (!checkCorrectGattInstance(gatt, "characteristic changed")) {
return;
}
if (gatt != mBluetoothGatt) {
LOG.info("Ignoring characteristic change event from wrong BluetoothGatt instance");
return;
}
if (getCallbackToUse() != null) {
getCallbackToUse().onCharacteristicChanged(gatt, characteristic);
} else {
@ -418,10 +414,6 @@ public final class BtLEQueue {
if (!checkCorrectGattInstance(gatt, "remote rssi")) {
return;
}
if (gatt != mBluetoothGatt) {
LOG.info("Ignoring remote rssi event from wrong BluetoothGatt instance");
return;
}
if (getCallbackToUse() != null) {
getCallbackToUse().onReadRemoteRssi(gatt, rssi, status);
}