OSDN Git Service

Remove unused field p_cur_char
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 3 Mar 2016 02:36:57 +0000 (18:36 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 3 Mar 2016 04:12:00 +0000 (20:12 -0800)
Change-Id: I956f966ddbb44506a5da8e1ab4ccb028bafa92de

bta/gatt/bta_gattc_cache.c
bta/gatt/bta_gattc_int.h

index e355034..4937a7c 100644 (file)
@@ -282,7 +282,6 @@ static tBTA_GATT_STATUS bta_gattc_add_srvc_to_cache(tBTA_GATTC_SERV *p_srvc_cb,
     p_new_srvc->p_attr = NULL;
 
     p_srvc_cb->p_cur_srvc = p_new_srvc;
-    p_srvc_cb->p_cur_srvc->p_cur_char = NULL;
 
     if (p_srvc_cb->p_srvc_cache == NULL) {
         p_srvc_cb->p_srvc_cache = list_new(service_free);
@@ -352,9 +351,6 @@ static tBTA_GATT_STATUS bta_gattc_add_attr_to_cache(tBTA_GATTC_SERV *p_srvc_cb,
 
     list_append(p_srvc_cb->p_cur_srvc->p_attr, p_attr);
 
-    if (type == BTA_GATTC_ATTR_TYPE_CHAR)
-        p_srvc_cb->p_cur_srvc->p_cur_char = list_back_node(p_srvc_cb->p_cur_srvc->p_attr);
-
     return BTA_GATT_OK;
 }
 
index 56c74d9..02e535b 100644 (file)
@@ -274,7 +274,6 @@ typedef struct
     list_t                 *p_attr; /* list of tBTA_GATTC_CACHE_ATTR */
     UINT16                  s_handle;
     UINT16                  e_handle;
-    list_node_t            *p_cur_char; /* node pointing to p_attr */
 // btla-specific ++
 } __attribute__((packed)) tBTA_GATTC_CACHE;
 // btla-specific --