Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: webrtc/modules/audio_coding/neteq/audio_vector.cc

Issue 2670643007: Make AudioVector::operator[] inline and modify index calculation (Closed)
Patch Set: Review comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_coding/neteq/audio_vector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/audio_vector.cc
diff --git a/webrtc/modules/audio_coding/neteq/audio_vector.cc b/webrtc/modules/audio_coding/neteq/audio_vector.cc
index ea737a5542425545b70769f734e7f48406412454..5cc1a4496684e7f29c186ba8b86398f2ebd5da16 100644
--- a/webrtc/modules/audio_coding/neteq/audio_vector.cc
+++ b/webrtc/modules/audio_coding/neteq/audio_vector.cc
@@ -284,14 +284,6 @@ bool AudioVector::Empty() const {
return begin_index_ == end_index_;
}
-const int16_t& AudioVector::operator[](size_t index) const {
- return array_[(begin_index_ + index) % capacity_];
-}
-
-int16_t& AudioVector::operator[](size_t index) {
- return array_[(begin_index_ + index) % capacity_];
-}
-
void AudioVector::Reserve(size_t n) {
if (capacity_ > n)
return;
« no previous file with comments | « webrtc/modules/audio_coding/neteq/audio_vector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698