From 6c9ddd2cbbdf59eaa1bdd83e7b6b0bc7d32bf7ca Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 8 Feb 2012 14:12:12 -0800 Subject: [PATCH] Remove dead code AudioTrack::getLoop Change-Id: I868329c52f31bc20125f068500d8f892b4ec9796 --- include/media/AudioTrack.h | 1 - media/libmedia/AudioTrack.cpp | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 11db81ba52fb0..03a30888278ec 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -299,7 +299,6 @@ public: * (loopEnd-loopStart) <= framecount() */ status_t setLoop(uint32_t loopStart, uint32_t loopEnd, int loopCount); - status_t getLoop(uint32_t *loopStart, uint32_t *loopEnd, int *loopCount) const; /* Sets marker position. When playback reaches the number of frames specified, a callback with * event type EVENT_MARKER is called. Calling setMarkerPosition with marker == 0 cancels marker diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index 087d7b2096f33..aa79c8eb6d629 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp @@ -591,26 +591,6 @@ status_t AudioTrack::setLoop_l(uint32_t loopStart, uint32_t loopEnd, int loopCou return NO_ERROR; } -status_t AudioTrack::getLoop(uint32_t *loopStart, uint32_t *loopEnd, int *loopCount) const -{ - AutoMutex lock(mLock); - if (loopStart != NULL) { - *loopStart = mCblk->loopStart; - } - if (loopEnd != NULL) { - *loopEnd = mCblk->loopEnd; - } - if (loopCount != NULL) { - if (mCblk->loopCount < 0) { - *loopCount = -1; - } else { - *loopCount = mCblk->loopCount; - } - } - - return NO_ERROR; -} - status_t AudioTrack::setMarkerPosition(uint32_t marker) { if (mCbf == NULL) return INVALID_OPERATION;