Index: webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc |
diff --git a/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc b/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc |
index 0855dd648a5f1fb123db48d862c875b16b64d7f6..b54fc0bd485c2467092ca7b339e81454069e102e 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc |
+++ b/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc |
@@ -209,20 +209,6 @@ const NetEqDecoder ACMCodecDB::neteq_decoders_[] = { |
#endif |
}; |
-// Get codec information from database. |
-// TODO(tlegrand): replace memcpy with a pointer to the data base memory. |
-int ACMCodecDB::Codec(int codec_id, CodecInst* codec_inst) { |
- // Error check to see that codec_id is not out of bounds. |
- if (static_cast<size_t>(codec_id) >= RentACodec::NumberOfCodecs()) { |
- return -1; |
- } |
- |
- // Copy database information for the codec to the output. |
- memcpy(codec_inst, &database_[codec_id], sizeof(CodecInst)); |
- |
- return 0; |
-} |
- |
// Enumerator for error codes when asking for codec database id. |
enum { |
kInvalidCodec = -10, |