From bcc6dbb6b2276f66f323a7e97298916d799ec96d Mon Sep 17 00:00:00 2001 From: kwiberg Date: Fri, 22 Apr 2016 00:12:38 -0700 Subject: [PATCH] DecoderDatabase::DecoderInfo: Remove unused member variable rtp_sample_rate_hz The fs_hz member variable is going away too, being replaced by a method in the AudioDecoder interface. If we ever end up needing the RTP sample rate here, a method ought to be the right solution for that too. BUG=webrtc:5801 Review URL: https://codereview.webrtc.org/1907183002 Cr-Commit-Position: refs/heads/master@{#12462} --- webrtc/modules/audio_coding/neteq/decoder_database.cc | 1 - webrtc/modules/audio_coding/neteq/decoder_database.h | 1 - 2 files changed, 2 deletions(-) diff --git a/webrtc/modules/audio_coding/neteq/decoder_database.cc b/webrtc/modules/audio_coding/neteq/decoder_database.cc index 44e0b4db59..d501f3e588 100644 --- a/webrtc/modules/audio_coding/neteq/decoder_database.cc +++ b/webrtc/modules/audio_coding/neteq/decoder_database.cc @@ -31,7 +31,6 @@ DecoderDatabase::DecoderInfo::DecoderInfo(NetEqDecoder ct, : codec_type(ct), name(nm), fs_hz(fs), - rtp_sample_rate_hz(fs), external_decoder(ext_dec) {} DecoderDatabase::DecoderInfo::DecoderInfo(DecoderInfo&&) = default; diff --git a/webrtc/modules/audio_coding/neteq/decoder_database.h b/webrtc/modules/audio_coding/neteq/decoder_database.h index 3706b9025d..37dbb5362c 100644 --- a/webrtc/modules/audio_coding/neteq/decoder_database.h +++ b/webrtc/modules/audio_coding/neteq/decoder_database.h @@ -54,7 +54,6 @@ class DecoderDatabase { const NetEqDecoder codec_type; const std::string name; const int fs_hz; - const int rtp_sample_rate_hz; AudioDecoder* const external_decoder; private: