From 86bcf286c10cab385712fad6e76f1ff8d248d0f2 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 20 Nov 2015 16:37:18 +0100 Subject: [PATCH] remove unused functions --- src/hfp_ag.c | 18 ------------------ src/hfp_ag.h | 10 ---------- test/pts/hfp_ag_test.c | 5 ----- 3 files changed, 33 deletions(-) diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 4d186223b..1bf3d172d 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -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()); diff --git a/src/hfp_ag.h b/src/hfp_ag.h index ba64e6464..f8f8692ac 100644 --- a/src/hfp_ag.h +++ b/src/hfp_ag.h @@ -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 */ diff --git a/test/pts/hfp_ag_test.c b/test/pts/hfp_ag_test.c index b2bf4e2fe..5a3c0d59a 100644 --- a/test/pts/hfp_ag_test.c +++ b/test/pts/hfp_ag_test.c @@ -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);