Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e296681a authored by Hui Peng's avatar Hui Peng
Browse files

[Invisalign] Remove unused code in bond_state_changed

Bug: 293545273
Test: existing tests pass
Change-Id: Icf2ec275bd41ec57f5537946d44f2d997029e9be
parent 922b7767
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -602,11 +602,6 @@ static void bond_state_changed(bt_status_t status, const RawAddress& bd_addr,
  GetInterfaceToProfiles()->events->invoke_bond_state_changed_cb(
      status, bd_addr, state, pairing_cb.fail_reason);

  int dev_type;
  if (!btif_get_device_type(bd_addr, &dev_type)) {
    dev_type = BT_DEVICE_TYPE_BREDR;
  }

  if ((state == BT_BOND_STATE_NONE) && (pairing_cb.bd_addr != bd_addr)
      && is_bonding_or_sdp()) {
    LOG_WARN("Ignoring bond state changed for unexpected device: %s pairing: %s",