summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-08-02 16:37:07 -0700
committerGlenn Kasten <gkasten@google.com>2012-08-30 15:18:16 -0700
commit7aa25591769685ae0e8349b3ca3534c724484375 (patch)
tree366da12832fc0b0033ac79a456eac6ca8acdb9f0 /services/audioflinger
parentb9cba9b731195d4387ee21b7e9ba1137a3cfda68 (diff)
downloadframeworks_av-7aa25591769685ae0e8349b3ca3534c724484375.zip
frameworks_av-7aa25591769685ae0e8349b3ca3534c724484375.tar.gz
frameworks_av-7aa25591769685ae0e8349b3ca3534c724484375.tar.bz2
Remove dead code
RecordThread::isValidSyncEvent() returns false, so most of RecordThread::setSyncEvent() is never executed. Change-Id: I0cf848beb46a367a45126d2df3073c5afa2ca59c
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/AudioFlinger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 8acd244..1a37f4f 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -6359,6 +6359,7 @@ bool AudioFlinger::RecordThread::isValidSyncEvent(const sp<SyncEvent>& event) co
status_t AudioFlinger::RecordThread::setSyncEvent(const sp<SyncEvent>& event)
{
+#if 0 // This branch is currently dead code, but is preserved in case it will be needed in future
if (!isValidSyncEvent(event)) {
return BAD_VALUE;
}
@@ -6376,6 +6377,9 @@ status_t AudioFlinger::RecordThread::setSyncEvent(const sp<SyncEvent>& event)
}
}
return ret;
+#else
+ return BAD_VALUE;
+#endif
}
void AudioFlinger::RecordThread::RecordTrack::destroy()