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

Commit 4b6e7893 authored by Myles Watson's avatar Myles Watson
Browse files

gap_ble: Remove unused service_handle

service_handle is no longer used, now that the log was removed.

Bug: 305066880
Test: m com.android.btservices
Change-Id: Iccd5b8501826f9410a130400d6ed9b711e5b0d64
parent d2fad73b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -399,8 +399,6 @@ bool accept_client_operation(const RawAddress& peer_bda, uint16_t uuid,
 *
 ******************************************************************************/
void gap_attr_db_init(void) {
  uint16_t service_handle;

  /* Fill our internal UUID with a fixed pattern 0x82 */
  std::array<uint8_t, Uuid::kNumBytes128> tmp;
  tmp.fill(0x82);
@@ -445,7 +443,6 @@ void gap_attr_db_init(void) {
  /* Add a GAP service */
  GATTS_AddService(gatt_if, service,
                   sizeof(service) / sizeof(btgatt_db_element_t));
  service_handle = service[0].attribute_handle;

  gatt_attr[0].uuid = GATT_UUID_GAP_DEVICE_NAME;
  gatt_attr[0].handle = service[1].attribute_handle;