diff options
author | Gabriele Svelto <gsvelto@mozilla.com> | 2018-06-11 00:22:56 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-29 08:23:41 +0200 |
commit | 63522e8e280a1b76a96be6095e8f9d92882a45e7 (patch) | |
tree | 89a64bca6417641f5a56c16e83b9d5eb2f77eb6f /hal/HalTypes.h | |
parent | 9836c7e10440364f3516c9a29e351cba92237b61 (diff) | |
download | UXP-63522e8e280a1b76a96be6095e8f9d92882a45e7.tar UXP-63522e8e280a1b76a96be6095e8f9d92882a45e7.tar.gz UXP-63522e8e280a1b76a96be6095e8f9d92882a45e7.tar.lz UXP-63522e8e280a1b76a96be6095e8f9d92882a45e7.tar.xz UXP-63522e8e280a1b76a96be6095e8f9d92882a45e7.zip |
Remove unused code for managing physical audio devices.
This was only used in B2G/Gonk and can go.
Diffstat (limited to 'hal/HalTypes.h')
-rw-r--r-- | hal/HalTypes.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/hal/HalTypes.h b/hal/HalTypes.h index 5f0ad3ff7..dc29f0553 100644 --- a/hal/HalTypes.h +++ b/hal/HalTypes.h @@ -33,26 +33,6 @@ enum ShutdownMode { eHalShutdownMode_Count = 3 }; -class SwitchEvent; - -enum SwitchDevice { - SWITCH_DEVICE_UNKNOWN = -1, - SWITCH_HEADPHONES, - SWITCH_USB, - NUM_SWITCH_DEVICE -}; - -enum SwitchState { - SWITCH_STATE_UNKNOWN = -1, - SWITCH_STATE_ON, - SWITCH_STATE_OFF, - SWITCH_STATE_HEADSET, // Headphone with microphone - SWITCH_STATE_HEADPHONE, // without microphone - NUM_SWITCH_STATE -}; - -typedef Observer<SwitchEvent> SwitchObserver; - // Note that we rely on the order of this enum's entries. Higher priorities // should have larger int values. enum ProcessPriority { @@ -141,28 +121,6 @@ struct ParamTraits<mozilla::hal::WakeLockControl> mozilla::hal::NUM_WAKE_LOCK> {}; -/** - * Serializer for SwitchState - */ -template <> -struct ParamTraits<mozilla::hal::SwitchState>: - public ContiguousEnumSerializer< - mozilla::hal::SwitchState, - mozilla::hal::SWITCH_STATE_UNKNOWN, - mozilla::hal::NUM_SWITCH_STATE> { -}; - -/** - * Serializer for SwitchDevice - */ -template <> -struct ParamTraits<mozilla::hal::SwitchDevice>: - public ContiguousEnumSerializer< - mozilla::hal::SwitchDevice, - mozilla::hal::SWITCH_DEVICE_UNKNOWN, - mozilla::hal::NUM_SWITCH_DEVICE> { -}; - template <> struct ParamTraits<mozilla::hal::ProcessPriority>: public ContiguousEnumSerializer< |