diff --git a/webrtc/modules/audio_coding/main/acm2/audio_coding_module.cc b/webrtc/modules/audio_coding/main/acm2/audio_coding_module.cc index 7225731d4..d4c6f5c6c 100644 --- a/webrtc/modules/audio_coding/main/acm2/audio_coding_module.cc +++ b/webrtc/modules/audio_coding/main/acm2/audio_coding_module.cc @@ -98,15 +98,4 @@ bool AudioCodingModule::IsCodecValid(const CodecInst& codec) { } } -AudioCodingModule* AudioCodingModuleFactory::Create(int id) const { - return new acm1::AudioCodingModuleImpl(static_cast(id), - Clock::GetRealTimeClock()); -} - -AudioCodingModule* NewAudioCodingModuleFactory::Create(int id) const { - AudioCodingModule::Config config; - config.id = id; - return new acm2::AudioCodingModuleImpl(config); -} - } // namespace webrtc diff --git a/webrtc/modules/audio_coding/main/interface/audio_coding_module.h b/webrtc/modules/audio_coding/main/interface/audio_coding_module.h index 9532bc8bf..89b337642 100644 --- a/webrtc/modules/audio_coding/main/interface/audio_coding_module.h +++ b/webrtc/modules/audio_coding/main/interface/audio_coding_module.h @@ -948,20 +948,6 @@ class AudioCodingModule: public Module { AudioDecodingCallStats* call_stats) const = 0; }; -struct AudioCodingModuleFactory { - AudioCodingModuleFactory() {} - virtual ~AudioCodingModuleFactory() {} - - virtual AudioCodingModule* Create(int id) const; -}; - -struct NewAudioCodingModuleFactory : AudioCodingModuleFactory { - NewAudioCodingModuleFactory() {} - virtual ~NewAudioCodingModuleFactory() {} - - virtual AudioCodingModule* Create(int id) const; -}; - } // namespace webrtc #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_