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

Commit bf375e99 authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove unused code from bte_search_devices_evt

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I1e50d5859e83894a16f2c395c6927173561e38a8
parent a4703062
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -1831,23 +1831,7 @@ void bte_dm_evt(tBTA_DM_SEC_EVT event, tBTA_DM_SEC* p_data) {
 ******************************************************************************/
static void bte_search_devices_evt(tBTA_DM_SEARCH_EVT event,
                                   tBTA_DM_SEARCH* p_data) {
  uint16_t param_len = 0;

  if (p_data) param_len += sizeof(tBTA_DM_SEARCH);
  /* Allocate buffer to hold the pointers (deep copy). The pointers will point
   * to the end of the tBTA_DM_SEARCH */
  switch (event) {
    case BTA_DM_INQ_RES_EVT: {
      if (p_data->inq_res.p_eir) param_len += p_data->inq_res.eir_len;
    } break;

    case BTA_DM_DISC_RES_EVT: {
      if (p_data->disc_res.raw_data_size && p_data->disc_res.p_raw_data)
        param_len += p_data->disc_res.raw_data_size;
    } break;
  }
  BTIF_TRACE_DEBUG("%s event=%s param_len=%d", __func__,
                   dump_dm_search_event(event), param_len);
  BTIF_TRACE_DEBUG("%s event=%s", __func__, dump_dm_search_event(event));

  /* if remote name is available in EIR, set teh flag so that stack doesnt
   * trigger RNR */