mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-13 02:37:32 +09:00
Remove unused code for managing physical audio devices.
This was only used in B2G/Gonk and can go.
This commit is contained in:
parent
ea5ece2be9
commit
7f6182b5a3
7 changed files with 0 additions and 273 deletions
|
|
@ -300,34 +300,6 @@ GetWakeLockInfo(const nsAString &aTopic, WakeLockInformation *aWakeLockInfo)
|
|||
Hal()->SendGetWakeLockInfo(nsString(aTopic), aWakeLockInfo);
|
||||
}
|
||||
|
||||
void
|
||||
EnableSwitchNotifications(SwitchDevice aDevice)
|
||||
{
|
||||
Hal()->SendEnableSwitchNotifications(aDevice);
|
||||
}
|
||||
|
||||
void
|
||||
DisableSwitchNotifications(SwitchDevice aDevice)
|
||||
{
|
||||
Hal()->SendDisableSwitchNotifications(aDevice);
|
||||
}
|
||||
|
||||
SwitchState
|
||||
GetCurrentSwitchState(SwitchDevice aDevice)
|
||||
{
|
||||
SwitchState state;
|
||||
Hal()->SendGetCurrentSwitchState(aDevice, &state);
|
||||
return state;
|
||||
}
|
||||
|
||||
void
|
||||
NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState)
|
||||
{
|
||||
Unused << aDevice;
|
||||
Unused << aState;
|
||||
NS_RUNTIMEABORT("Only the main process may notify switch state change.");
|
||||
}
|
||||
|
||||
bool
|
||||
EnableAlarm()
|
||||
{
|
||||
|
|
@ -420,7 +392,6 @@ class HalParent : public PHalParent
|
|||
, public ISensorObserver
|
||||
, public WakeLockObserver
|
||||
, public ScreenConfigurationObserver
|
||||
, public SwitchObserver
|
||||
, public SystemClockChangeObserver
|
||||
, public SystemTimezoneChangeObserver
|
||||
{
|
||||
|
|
@ -440,10 +411,6 @@ public:
|
|||
hal::UnregisterWakeLockObserver(this);
|
||||
hal::UnregisterSystemClockChangeObserver(this);
|
||||
hal::UnregisterSystemTimezoneChangeObserver(this);
|
||||
for (int32_t switchDevice = SWITCH_DEVICE_UNKNOWN + 1;
|
||||
switchDevice < NUM_SWITCH_DEVICE; ++switchDevice) {
|
||||
hal::UnregisterSwitchObserver(SwitchDevice(switchDevice), this);
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool
|
||||
|
|
@ -771,34 +738,6 @@ public:
|
|||
Unused << SendNotifyWakeLockChange(aWakeLockInfo);
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvEnableSwitchNotifications(const SwitchDevice& aDevice) override
|
||||
{
|
||||
// Content has no reason to listen to switch events currently.
|
||||
hal::RegisterSwitchObserver(aDevice, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvDisableSwitchNotifications(const SwitchDevice& aDevice) override
|
||||
{
|
||||
hal::UnregisterSwitchObserver(aDevice, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
void Notify(const SwitchEvent& aSwitchEvent) override
|
||||
{
|
||||
Unused << SendNotifySwitchChange(aSwitchEvent);
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvGetCurrentSwitchState(const SwitchDevice& aDevice, hal::SwitchState *aState) override
|
||||
{
|
||||
// Content has no reason to listen to switch events currently.
|
||||
*aState = hal::GetCurrentSwitchState(aDevice);
|
||||
return true;
|
||||
}
|
||||
|
||||
void Notify(const int64_t& aClockDeltaMS) override
|
||||
{
|
||||
Unused << SendNotifySystemClockChange(aClockDeltaMS);
|
||||
|
|
@ -868,12 +807,6 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvNotifySwitchChange(const mozilla::hal::SwitchEvent& aEvent) override {
|
||||
hal::NotifySwitchChange(aEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvNotifySystemClockChange(const int64_t& aClockDeltaMS) override {
|
||||
hal::NotifySystemClockChange(aClockDeltaMS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue