From ee7202f7a45118779f11209fb091a785dbaeb207 Mon Sep 17 00:00:00 2001 From: "bjornv@webrtc.org" Date: Wed, 20 Feb 2013 16:36:59 +0000 Subject: [PATCH] Removed unused get_config function. The configuration is already stored and handled in the audio processing module, so there is no need for this functionality. Tested with audioproc_unittest and on trybots. TEST=none BUG=none Review URL: https://webrtc-codereview.appspot.com/1103016 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3546 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../audio_processing/aec/echo_cancellation.c | 26 ------------------- .../aec/include/echo_cancellation.h | 16 ------------ 2 files changed, 42 deletions(-) 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. *