diff --git a/webrtc/modules/audio_processing/aec/echo_cancellation.c b/webrtc/modules/audio_processing/aec/echo_cancellation.c index d7d935a301..529382aa7b 100644 --- a/webrtc/modules/audio_processing/aec/echo_cancellation.c +++ b/webrtc/modules/audio_processing/aec/echo_cancellation.c @@ -578,32 +578,6 @@ WebRtc_Word32 WebRtcAec_set_config(void *aecInst, AecConfig config) return 0; } -WebRtc_Word32 WebRtcAec_get_config(void *aecInst, AecConfig *config) -{ - aecpc_t *aecpc = aecInst; - - if (aecpc == NULL) { - return -1; - } - - if (config == NULL) { - aecpc->lastError = AEC_NULL_POINTER_ERROR; - return -1; - } - - if (aecpc->initFlag != initCheck) { - aecpc->lastError = AEC_UNINITIALIZED_ERROR; - return -1; - } - - config->nlpMode = aecpc->aec->nlp_mode; - config->skewMode = aecpc->skewMode; - config->metricsMode = aecpc->aec->metricsMode; - config->delay_logging = aecpc->aec->delay_logging_enabled; - - return 0; -} - int WebRtcAec_get_echo_status(void* handle, int* status) { aecpc_t* self = (aecpc_t*)handle; diff --git a/webrtc/modules/audio_processing/aec/include/echo_cancellation.h b/webrtc/modules/audio_processing/aec/include/echo_cancellation.h index 367ed5614d..45a131921c 100644 --- a/webrtc/modules/audio_processing/aec/include/echo_cancellation.h +++ b/webrtc/modules/audio_processing/aec/include/echo_cancellation.h @@ -178,22 +178,6 @@ WebRtc_Word32 WebRtcAec_Process(void *aecInst, */ WebRtc_Word32 WebRtcAec_set_config(void *aecInst, AecConfig config); -/* - * Gets the on-the-fly paramters. - * - * Inputs Description - * ------------------------------------------------------------------- - * void *aecInst Pointer to the AEC instance - * - * Outputs Description - * ------------------------------------------------------------------- - * AecConfig *config Pointer to the config instance that - * all properties will be written to - * WebRtc_Word32 return 0: OK - * -1: error - */ -WebRtc_Word32 WebRtcAec_get_config(void *aecInst, AecConfig *config); - /* * Gets the current echo status of the nearend signal. *