diff options
-rw-r--r-- | system/bta/gatt/bta_gattc_act.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/system/bta/gatt/bta_gattc_act.cc b/system/bta/gatt/bta_gattc_act.cc index 83f846b035..cd9da7a949 100644 --- a/system/bta/gatt/bta_gattc_act.cc +++ b/system/bta/gatt/bta_gattc_act.cc @@ -604,14 +604,6 @@ void bta_gattc_close(tBTA_GATTC_CLCB* p_clcb, const tBTA_GATTC_DATA* p_data) { bta_sys_conn_close(BTA_ID_GATTC, BTA_ALL_APP_ID, p_clcb->bda); } - /* Clean up notification registration for closed client */ - for (int i = 0; i < BTA_GATTC_NOTIF_REG_MAX; i++) { - if (p_clreg->notif_reg[i].in_use && - p_clreg->notif_reg[i].remote_bda == p_clcb->bda) { - p_clreg->notif_reg[i] = {}; - } - } - bta_gattc_clcb_dealloc(p_clcb); if (p_data->hdr.event == BTA_GATTC_API_CLOSE_EVT) { |