OSDN Git Service

Remove unused method
authorJakub Pawlowski <jpawlowski@google.com>
Sat, 30 Jan 2016 08:53:30 +0000 (00:53 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Mon, 1 Feb 2016 20:02:12 +0000 (20:02 +0000)
Change-Id: Icb1a9f76cade28112c084cf6fde4d0f8d9c57ed0

stack/btm/btm_int.h
stack/btm/btm_sec.c

index 1283fb4..def5640 100644 (file)
@@ -1093,7 +1093,6 @@ extern void btm_sec_set_peer_sec_caps (tACL_CONN *p_acl_cb, tBTM_SEC_DEV_REC *p_
 
 #if BLE_INCLUDED == TRUE
 extern void  btm_sec_clear_ble_keys (tBTM_SEC_DEV_REC  *p_dev_rec);
-extern  BOOLEAN btm_sec_find_bonded_dev (UINT8 start_idx, UINT8 *p_found_idx, tBTM_SEC_DEV_REC **p_rec);
 extern BOOLEAN btm_sec_is_a_bonded_dev (BD_ADDR bda);
 extern void btm_consolidate_dev(tBTM_SEC_DEV_REC *p_target_rec);
 extern BOOLEAN btm_sec_is_le_capable_dev (BD_ADDR bda);
index 9e516b3..a605dcd 100644 (file)
@@ -6354,43 +6354,6 @@ BOOLEAN btm_sec_is_le_capable_dev (BD_ADDR bda)
 
 /*******************************************************************************
 **
-** Function         btm_sec_find_bonded_dev
-**
-** Description      Find a bonded device starting from the specified index
-**
-** Returns          TRUE - found a bonded device
-**
-*******************************************************************************/
-BOOLEAN btm_sec_find_bonded_dev (UINT8 start_idx, UINT8 *p_found_idx, tBTM_SEC_DEV_REC **p_rec)
-{
-    BOOLEAN found= FALSE;
-
-#if (SMP_INCLUDED== TRUE)
-    tBTM_SEC_DEV_REC *p_dev_rec;
-    int i;
-    if (start_idx >= BTM_SEC_MAX_DEVICE_RECORDS)
-    {
-        BTM_TRACE_DEBUG ("LE bonded device not found");
-        return found;
-    }
-
-    p_dev_rec = &btm_cb.sec_dev_rec[start_idx];
-    for (i = start_idx; i < BTM_SEC_MAX_DEVICE_RECORDS; i++, p_dev_rec++)
-    {
-        if (p_dev_rec->ble.key_type || (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN))
-        {
-            *p_found_idx = i;
-            *p_rec = p_dev_rec;
-            break;
-        }
-    }
-    BTM_TRACE_DEBUG ("%s() found=%d", __func__, found);
-#endif
-    return(found);
-}
-
-/*******************************************************************************
-**
 ** Function         btm_sec_use_smp_br_chnl
 **
 ** Description      The function checks if SMP BR connection can be used with