OSDN Git Service

Remove unused sco initialization
authorChris Manton <cmanton@google.com>
Mon, 1 Feb 2021 19:00:36 +0000 (11:00 -0800)
committerChris Manton <cmanton@google.com>
Wed, 3 Feb 2021 05:26:20 +0000 (21:26 -0800)
Towards meaningful code

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

Change-Id: I4b264f8e0f63d4fcd2f5f851670395e13b5f5c02

stack/btm/btm_main.cc
stack/btm/btm_sco.cc

index 7e7ec8e..0862df9 100644 (file)
 */
 tBTM_CB btm_cb;
 
-extern void btm_inq_db_init(void);
-extern void btm_inq_db_free(void);
-extern void btm_sco_init(void);
-extern void wipe_secrets_and_remove(tBTM_SEC_DEV_REC* p_dev_rec);
-
 /*******************************************************************************
  *
  * Function         btm_init
index 3b4a345..e0761dd 100644 (file)
@@ -99,27 +99,6 @@ static void btm_sco_flush_sco_data(UNUSED_ATTR uint16_t sco_inx) {}
 
 /*******************************************************************************
  *
- * Function         btm_sco_init
- *
- * Description      This function is called at BTM startup to initialize
- *
- * Returns          void
- *
- ******************************************************************************/
-void btm_sco_init(void) {
-  /* Initialize nonzero defaults */
-  btm_cb.sco_cb.def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD);
-  btm_cb.sco_cb.def_esco_parms.max_latency_ms = 12;
-  btm_cb.sco_cb.sco_route = ESCO_DATA_PATH_PCM;
-
-  btm_cb.btm_sco_pkt_types_supported =
-      ESCO_PKT_TYPES_MASK_HV1 + ESCO_PKT_TYPES_MASK_HV2 +
-      ESCO_PKT_TYPES_MASK_HV3 + ESCO_PKT_TYPES_MASK_EV3 +
-      ESCO_PKT_TYPES_MASK_EV4 + ESCO_PKT_TYPES_MASK_EV5;
-}
-
-/*******************************************************************************
- *
  * Function         btm_esco_conn_rsp
  *
  * Description      This function is called upon receipt of an (e)SCO connection