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

Commit 2777c245 authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused bta_gatts_co_load_handle_range

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Ia6366db2bfd2739b8b61b870d6da5b4a29b853cf
parent 1c161365
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -116,9 +116,6 @@ static bool bta_gatts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd,
 *
 ******************************************************************************/
void bta_gatts_enable(tBTA_GATTS_CB* p_cb) {
  uint8_t index = 0;
  tBTA_GATTS_HNDL_RANGE handle_range;

  if (p_cb->enabled) {
    VLOG(1) << "GATTS already enabled.";
  } else {
@@ -126,14 +123,6 @@ void bta_gatts_enable(tBTA_GATTS_CB* p_cb) {

    p_cb->enabled = true;

    while (bta_gatts_co_load_handle_range(index, &handle_range)) {
      GATTS_AddHandleRange((tGATTS_HNDL_RANGE*)&handle_range);
      memset(&handle_range, 0, sizeof(tGATTS_HNDL_RANGE));
      index++;
    }

    VLOG(1) << __func__ << ": num of handle range added:" << +index;

    if (!GATTS_NVRegister(&bta_gatts_nv_cback)) {
      LOG(ERROR) << "BTA GATTS NV register failed.";
    }
+0 −15
Original line number Diff line number Diff line
@@ -64,19 +64,4 @@ extern bool bta_gatts_co_srv_chg(tGATTS_SRV_CHG_CMD cmd,
                                 tGATTS_SRV_CHG_REQ* p_req,
                                 tGATTS_SRV_CHG_RSP* p_rsp);

/*******************************************************************************
 *
 * Function         bta_gatts_co_load_handle_range
 *
 * Description      This callout function is executed by GATTS when a GATT
 *                  server handle range is requested to be loaded from NV.
 *
 * Parameter
 *
 * Returns          void.
 *
 ******************************************************************************/
extern bool bta_gatts_co_load_handle_range(uint8_t index,
                                           tBTA_GATTS_HNDL_RANGE* p_handle);

#endif /* BTA_GATTS_CO_H */
+0 −18
Original line number Diff line number Diff line
@@ -126,21 +126,3 @@ bool bta_gatts_co_srv_chg(UNUSED_ATTR tGATTS_SRV_CHG_CMD cmd,
                          UNUSED_ATTR tGATTS_SRV_CHG_RSP* p_rsp) {
  return false;
}

/*******************************************************************************
 *
 * Function         bta_gatts_co_load_handle_range
 *
 * Description      This callout function is executed by GATTS when a GATT
 *                  server handle range is requested to be loaded from NV.
 *
 * Parameter
 *
 * Returns          void.
 *
 ******************************************************************************/
bool bta_gatts_co_load_handle_range(
    UNUSED_ATTR uint8_t index,
    UNUSED_ATTR tBTA_GATTS_HNDL_RANGE* p_handle_range) {
  return false;
}