remove unused functions

This commit is contained in:
Matthias Ringwald 2015-11-20 16:37:18 +01:00
parent c7b53f7dcd
commit 86bcf286c1
3 changed files with 0 additions and 33 deletions

View File

@ -1175,24 +1175,6 @@ void hfp_ag_terminate_call(void){
hfp_ag_call_sm(HFP_AG_TERMINATE_CALL_BY_AG, NULL);
}
void hfp_ag_audio_connection_transfer_towards_ag(bd_addr_t bd_addr){
hfp_connection_t * connection = get_hfp_connection_context_for_bd_addr(bd_addr);
if (connection->call_state != HFP_CALL_ACTIVE) return;
if (connection->state != HFP_AUDIO_CONNECTION_ESTABLISHED) return;
hfp_ag_release_audio_connection(bd_addr);
}
/**
* @brief
*/
void hfp_ag_audio_connection_transfer_towards_hf(bd_addr_t bd_addr){
hfp_connection_t * connection = get_hfp_connection_context_for_bd_addr(bd_addr);
if (connection->call_state != HFP_CALL_ACTIVE) return;
if (connection->state != HFP_AUDIO_CONNECTION_ESTABLISHED) return;
hfp_ag_establish_audio_connection(bd_addr);
}
void hfp_ag_place_a_call_with_phone_number(void){
// linked_list_iterator_t it;
// linked_list_iterator_init(&it, hfp_get_connections());

View File

@ -190,16 +190,6 @@ void hfp_ag_call_dropped(void);
*/
void hfp_ag_terminate_call(void);
/**
* @brief
*/
void hfp_ag_audio_connection_transfer_towards_hf(bd_addr_t bd_addr);
/**
* @brief
*/
void hfp_ag_audio_connection_transfer_towards_ag(bd_addr_t bd_addr);
/**
* @brief
*/

View File

@ -138,8 +138,6 @@ static void show_usage(void){
printf("i - Set battery level to 3\n");
printf("I - Set battery level to 5\n");
printf("j - Transfer audio from AG to HF\n");
printf("t - terminate connection\n");
printf("---\n");
@ -224,9 +222,6 @@ static int stdin_process(struct data_source *ds){
printf("Set battery level to 5\n");
hfp_ag_set_battery_level(5);
break;
case 'j':
hfp_ag_audio_connection_transfer_towards_hf(device_addr);
break;
case 'r':
printf("Disable in-band ring tone\n");
hfp_ag_set_use_in_band_ring_tone(0);