diff --git a/system/stack/gatt/gatt_api.cc b/system/stack/gatt/gatt_api.cc index d2ad51f19d158dcf1883f335a38d36d1e42126e3..6129b30de9dd577135a0a7b56c6de49959bc89db 100644 --- a/system/stack/gatt/gatt_api.cc +++ b/system/stack/gatt/gatt_api.cc @@ -65,22 +65,6 @@ tGATT_HDL_LIST_ELEM& gatt_add_an_item_to_list(uint16_t s_handle) { * GATT SERVER API * *****************************************************************************/ -/******************************************************************************* - * - * Function GATTS_AddHandleRange - * - * Description This function add the allocated handles range for the - * specified application UUID, service UUID and service - * instance - * - * Parameter p_hndl_range: pointer to allocated handles information - * - **/ - -void GATTS_AddHandleRange(tGATTS_HNDL_RANGE* p_hndl_range) { - gatt_add_an_item_to_list(p_hndl_range->s_handle); -} - /******************************************************************************* * * Function GATTS_NVRegister diff --git a/system/stack/include/gatt_api.h b/system/stack/include/gatt_api.h index e7e6b42761f7af61454e467a693c38f24c1c1e25..33a6eaee6dcd23e7eef0e4b8a1815ef9e149b437 100644 --- a/system/stack/include/gatt_api.h +++ b/system/stack/include/gatt_api.h @@ -758,18 +758,6 @@ typedef struct { /******************************************************************************/ /* GATT Profile Server Functions */ /******************************************************************************/ -/******************************************************************************* - * - * Function GATTS_AddHandleRange - * - * Description This function add the allocated handles range for the - * specified application UUID, service UUID and service - * instance - * - * Parameter p_hndl_range: pointer to allocated handles information - ******************************************************************************/ - -extern void GATTS_AddHandleRange(tGATTS_HNDL_RANGE* p_hndl_range); /******************************************************************************* * diff --git a/system/test/mock/mock_stack_gatt.cc b/system/test/mock/mock_stack_gatt.cc index 60f4f3d0609c8be6be93762ac1af92662dcc3bca..5339ab05858ed59ca52ad1fafb93d7126e188d92 100644 --- a/system/test/mock/mock_stack_gatt.cc +++ b/system/test/mock/mock_stack_gatt.cc @@ -145,9 +145,6 @@ tGATT_STATUS GATT_Disconnect(uint16_t conn_id) { mock_function_count_map[__func__]++; return GATT_SUCCESS; } -void GATTS_AddHandleRange(tGATTS_HNDL_RANGE* p_hndl_range) { - mock_function_count_map[__func__]++; -} void GATTS_StopService(uint16_t service_handle) { mock_function_count_map[__func__]++; }