summaryrefslogtreecommitdiffstats
path: root/hal/Hal.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-29 14:30:24 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-29 14:30:24 +0000
commita1ca8ca9bd1f4442dcbe613efa04f37a2c7b9f57 (patch)
tree9df45decf2d7d940ff19641adea50fe7122805f7 /hal/Hal.cpp
parent86b184b957ea2ce31e5ffc376e90cbc537963367 (diff)
parent2ee2ca7dfb0913eef79708dc4100f87b9557e128 (diff)
downloadUXP-a1ca8ca9bd1f4442dcbe613efa04f37a2c7b9f57.tar
UXP-a1ca8ca9bd1f4442dcbe613efa04f37a2c7b9f57.tar.gz
UXP-a1ca8ca9bd1f4442dcbe613efa04f37a2c7b9f57.tar.lz
UXP-a1ca8ca9bd1f4442dcbe613efa04f37a2c7b9f57.tar.xz
UXP-a1ca8ca9bd1f4442dcbe613efa04f37a2c7b9f57.zip
Merge branch 'redwood' into release
Diffstat (limited to 'hal/Hal.cpp')
-rw-r--r--hal/Hal.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/hal/Hal.cpp b/hal/Hal.cpp
index 67930c355..981f49125 100644
--- a/hal/Hal.cpp
+++ b/hal/Hal.cpp
@@ -264,30 +264,6 @@ private:
bool mHasValidCache;
};
-class BatteryObserversManager : public CachingObserversManager<BatteryInformation>
-{
-protected:
- void EnableNotifications() {
- PROXY_IF_SANDBOXED(EnableBatteryNotifications());
- }
-
- void DisableNotifications() {
- PROXY_IF_SANDBOXED(DisableBatteryNotifications());
- }
-
- void GetCurrentInformationInternal(BatteryInformation* aInfo) {
- PROXY_IF_SANDBOXED(GetCurrentBatteryInformation(aInfo));
- }
-};
-
-static BatteryObserversManager&
-BatteryObservers()
-{
- static BatteryObserversManager sBatteryObservers;
- AssertMainThread();
- return sBatteryObservers;
-}
-
class NetworkObserversManager : public CachingObserversManager<NetworkInformation>
{
protected:
@@ -356,35 +332,6 @@ ScreenConfigurationObservers()
return sScreenConfigurationObservers;
}
-void
-RegisterBatteryObserver(BatteryObserver* aObserver)
-{
- AssertMainThread();
- BatteryObservers().AddObserver(aObserver);
-}
-
-void
-UnregisterBatteryObserver(BatteryObserver* aObserver)
-{
- AssertMainThread();
- BatteryObservers().RemoveObserver(aObserver);
-}
-
-void
-GetCurrentBatteryInformation(BatteryInformation* aInfo)
-{
- AssertMainThread();
- *aInfo = BatteryObservers().GetCurrentInformation();
-}
-
-void
-NotifyBatteryChange(const BatteryInformation& aInfo)
-{
- AssertMainThread();
- BatteryObservers().CacheInformation(aInfo);
- BatteryObservers().BroadcastCachedInformation();
-}
-
bool GetScreenEnabled()
{
AssertMainThread();