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

Commit a88a315b authored by Henri Chataing's avatar Henri Chataing
Browse files

Remove unused function btif_storage_set_remote_device_type

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: I06f2d9a255454c9296620d55c9913f67ef5703ee
parent 3430e05d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -381,8 +381,6 @@ void btif_storage_set_remote_addr_type(const RawAddress& remote_bd_addr,
                                       const tBLE_ADDR_TYPE& addr_type);
bool btif_storage_get_remote_device_type(const RawAddress& remote_bd_addr,
                                         tBT_DEVICE_TYPE& device_type);
void btif_storage_set_remote_device_type(const RawAddress& remote_bd_addr,
                                         const tBT_DEVICE_TYPE& device_type);

void btif_storage_add_groups(const RawAddress& addr);
void btif_storage_load_bonded_groups(void);
+0 −7
Original line number Diff line number Diff line
@@ -1361,13 +1361,6 @@ void btif_storage_set_remote_addr_type(const RawAddress& remote_bd_addr,
  }
}

void btif_storage_set_remote_device_type(const RawAddress& remote_bd_addr,
                                         const tBT_DEVICE_TYPE& device_type) {
  if (!btif_config_set_int(remote_bd_addr.ToString(), BTIF_STORAGE_KEY_DEV_TYPE,
                           static_cast<int>(device_type)))
    log::error("Unable to set storage property");
}

bool btif_has_ble_keys(const std::string& bdstr) {
  return btif_config_exist(bdstr, BTIF_STORAGE_KEY_LE_KEY_PENC);
}
+0 −7
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ struct btif_storage_set_remote_addr_type btif_storage_set_remote_addr_type;
struct btif_storage_set_remote_addr_type2 btif_storage_set_remote_addr_type2;
struct btif_storage_set_remote_device_property
    btif_storage_set_remote_device_property;
struct btif_storage_set_remote_device_type btif_storage_set_remote_device_type;

}  // namespace btif_storage
}  // namespace mock
@@ -332,11 +331,5 @@ bt_status_t btif_storage_set_remote_device_property(
  return test::mock::btif_storage::btif_storage_set_remote_device_property(
      remote_bd_addr, property);
}
void btif_storage_set_remote_device_type(const RawAddress& remote_bd_addr,
                                         const tBT_DEVICE_TYPE& device_type) {
  inc_func_call_count(__func__);
  test::mock::btif_storage::btif_storage_set_remote_device_type(remote_bd_addr,
                                                                device_type);
}
// Mocked functions complete
// END mockcify generation
+0 −16
Original line number Diff line number Diff line
@@ -593,22 +593,6 @@ struct btif_storage_set_remote_device_property {
extern struct btif_storage_set_remote_device_property
    btif_storage_set_remote_device_property;

// Name: btif_storage_set_remote_device_type
// Params: const RawAddress& remote_bd_addr, const tBT_DEVICE_TYPE& device_type
// Return: void
struct btif_storage_set_remote_device_type {
  std::function<void(const RawAddress& remote_bd_addr,
                     const tBT_DEVICE_TYPE& device_type)>
      body{[](const RawAddress& /* remote_bd_addr */,
              const tBT_DEVICE_TYPE& /* device_type */) {}};
  void operator()(const RawAddress& remote_bd_addr,
                  const tBT_DEVICE_TYPE& device_type) {
    body(remote_bd_addr, device_type);
  };
};
extern struct btif_storage_set_remote_device_type
    btif_storage_set_remote_device_type;

}  // namespace btif_storage
}  // namespace mock
}  // namespace test