From a36060891425c4ce0621e40344ac473ec14924dd Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 6 Nov 2014 18:07:23 -0800 Subject: AudioSystem: remove obsolete method. Bug: 18067208. Change-Id: I9bbf9088485f5162c765ca504d9b784b956234c6 --- include/media/AudioSystem.h | 2 -- media/libmedia/AudioSystem.cpp | 15 --------------- 2 files changed, 17 deletions(-) diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index f8c0198..6f46f9e 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -116,8 +116,6 @@ public: static status_t getLatency(audio_io_handle_t output, uint32_t* latency); - static bool routedToA2dpOutput(audio_stream_type_t streamType); - // return status NO_ERROR implies *buffSize > 0 static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t* buffSize); diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp index dda3657..e4a5674 100644 --- a/media/libmedia/AudioSystem.cpp +++ b/media/libmedia/AudioSystem.cpp @@ -543,21 +543,6 @@ void AudioSystem::setErrorCallback(audio_error_callback cb) gAudioErrorCallback = cb; } - -bool AudioSystem::routedToA2dpOutput(audio_stream_type_t streamType) -{ - switch (streamType) { - case AUDIO_STREAM_MUSIC: - case AUDIO_STREAM_VOICE_CALL: - case AUDIO_STREAM_BLUETOOTH_SCO: - case AUDIO_STREAM_SYSTEM: - return true; - default: - return false; - } -} - - // client singleton for AudioPolicyService binder interface sp AudioSystem::gAudioPolicyService; sp AudioSystem::gAudioPolicyServiceClient; -- cgit v1.1