1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Remove some superfluous checks

This commit is contained in:
cpfeiffer 2015-10-03 23:52:33 +02:00
parent 321c0ff125
commit 5b8bf468f5

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);
}