From 3fcf85cd91f01f21b3f9727508fd190898695533 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 22 Feb 2017 15:29:50 -0800 Subject: Comment out unused methods Test: compiles OK Change-Id: I6f5513e7c5655e91e4cc3dd8de8ec407b9f7b94e --- .../java/com/android/internal/alsa/AlsaDevicesParser.java | 6 ++++++ .../usb/java/com/android/server/usb/UsbAlsaManager.java | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/core/java/com/android/internal/alsa/AlsaDevicesParser.java b/core/java/com/android/internal/alsa/AlsaDevicesParser.java index 81b79438de20..3d78a2c27bf4 100644 --- a/core/java/com/android/internal/alsa/AlsaDevicesParser.java +++ b/core/java/com/android/internal/alsa/AlsaDevicesParser.java @@ -199,9 +199,11 @@ public class AlsaDevicesParser { // // Predicates // +/* public boolean hasPlaybackDevices() { return mHasPlaybackDevices; } +*/ public boolean hasPlaybackDevices(int card) { for (AlsaDeviceRecord deviceRecord : mDeviceRecords) { @@ -214,9 +216,11 @@ public class AlsaDevicesParser { return false; } +/* public boolean hasCaptureDevices() { return mHasCaptureDevices; } +*/ public boolean hasCaptureDevices(int card) { for (AlsaDeviceRecord deviceRecord : mDeviceRecords) { @@ -229,9 +233,11 @@ public class AlsaDevicesParser { return false; } +/* public boolean hasMIDIDevices() { return mHasMIDIDevices; } +*/ public boolean hasMIDIDevices(int card) { for (AlsaDeviceRecord deviceRecord : mDeviceRecords) { diff --git a/services/usb/java/com/android/server/usb/UsbAlsaManager.java b/services/usb/java/com/android/server/usb/UsbAlsaManager.java index 058de05f4e41..40bdaa58a864 100644 --- a/services/usb/java/com/android/server/usb/UsbAlsaManager.java +++ b/services/usb/java/com/android/server/usb/UsbAlsaManager.java @@ -497,6 +497,7 @@ public final class UsbAlsaManager { // // Devices List // +/* public ArrayList getConnectedDevices() { ArrayList devices = new ArrayList(mAudioDevices.size()); for (HashMap.Entry entry : mAudioDevices.entrySet()) { @@ -504,6 +505,7 @@ public final class UsbAlsaManager { } return devices; } +*/ // // Logging @@ -519,6 +521,7 @@ public final class UsbAlsaManager { } } +/* public void logDevicesList(String title) { if (DEBUG) { for (HashMap.Entry entry : mAudioDevices.entrySet()) { @@ -528,15 +531,19 @@ public final class UsbAlsaManager { Slog.i(TAG, "" + entry.getValue()); } } - } + } +*/ - // This logs a more terse (and more readable) version of the devices list - public void logDevices(String title) { + // This logs a more terse (and more readable) version of the devices list +/* + public void logDevices(String title) { if (DEBUG) { Slog.i(TAG, title); for (HashMap.Entry entry : mAudioDevices.entrySet()) { Slog.i(TAG, entry.getValue().toShortString()); } } - } + } +*/ + } -- cgit v1.2.3-59-g8ed1b