summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-12-06 23:39:47 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-06 23:39:47 +0100
commit642032029f65e9dc0d38fbb6d35ef656c73a292c (patch)
tree78a22bd12d679ab532db490d631ee69fa085aec1 /hal
parent50ef259a2df60d020ccb02d76dc5aa4835ee319e (diff)
parent2529b2edece0a0ed86553d1e73eef13c3848bf64 (diff)
downloadUXP-642032029f65e9dc0d38fbb6d35ef656c73a292c.tar
UXP-642032029f65e9dc0d38fbb6d35ef656c73a292c.tar.gz
UXP-642032029f65e9dc0d38fbb6d35ef656c73a292c.tar.lz
UXP-642032029f65e9dc0d38fbb6d35ef656c73a292c.tar.xz
UXP-642032029f65e9dc0d38fbb6d35ef656c73a292c.zip
Merge branch 'master' into release
Diffstat (limited to 'hal')
-rw-r--r--hal/Hal.cpp16
-rw-r--r--hal/Hal.h14
-rw-r--r--hal/fallback/FallbackDiskSpaceWatcher.cpp19
-rw-r--r--hal/moz.build1
-rw-r--r--hal/sandbox/SandboxHal.cpp12
5 files changed, 0 insertions, 62 deletions
diff --git a/hal/Hal.cpp b/hal/Hal.cpp
index f88efd6cc..67930c355 100644
--- a/hal/Hal.cpp
+++ b/hal/Hal.cpp
@@ -855,22 +855,6 @@ void FactoryReset(mozilla::dom::FactoryResetReason& aReason)
PROXY_IF_SANDBOXED(FactoryReset(aReason));
}
-void
-StartDiskSpaceWatcher()
-{
- AssertMainProcess();
- AssertMainThread();
- PROXY_IF_SANDBOXED(StartDiskSpaceWatcher());
-}
-
-void
-StopDiskSpaceWatcher()
-{
- AssertMainProcess();
- AssertMainThread();
- PROXY_IF_SANDBOXED(StopDiskSpaceWatcher());
-}
-
uint32_t
GetTotalSystemMemory()
{
diff --git a/hal/Hal.h b/hal/Hal.h
index 14247ee2e..5411b387a 100644
--- a/hal/Hal.h
+++ b/hal/Hal.h
@@ -477,20 +477,6 @@ void StartForceQuitWatchdog(hal::ShutdownMode aMode, int32_t aTimeoutSecs);
void FactoryReset(mozilla::dom::FactoryResetReason& aReason);
/**
- * Start monitoring disk space for low space situations.
- *
- * This API is currently only allowed to be used from the main process.
- */
-void StartDiskSpaceWatcher();
-
-/**
- * Stop monitoring disk space for low space situations.
- *
- * This API is currently only allowed to be used from the main process.
- */
-void StopDiskSpaceWatcher();
-
-/**
* Get total system memory of device being run on in bytes.
*
* Returns 0 if we are unable to determine this information from /proc/meminfo.
diff --git a/hal/fallback/FallbackDiskSpaceWatcher.cpp b/hal/fallback/FallbackDiskSpaceWatcher.cpp
deleted file mode 100644
index 99d144397..000000000
--- a/hal/fallback/FallbackDiskSpaceWatcher.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-namespace mozilla {
-namespace hal_impl {
-
-void
-StartDiskSpaceWatcher()
-{
-}
-
-void
-StopDiskSpaceWatcher()
-{
-}
-
-} // namespace hal_impl
-} // namespace mozilla
diff --git a/hal/moz.build b/hal/moz.build
index 3e1bae404..8d2950ac0 100644
--- a/hal/moz.build
+++ b/hal/moz.build
@@ -107,7 +107,6 @@ else:
]
UNIFIED_SOURCES += [
- 'fallback/FallbackDiskSpaceWatcher.cpp',
'fallback/FallbackFactoryReset.cpp',
'fallback/FallbackProcessPriority.cpp',
'fallback/FallbackScreenPower.cpp',
diff --git a/hal/sandbox/SandboxHal.cpp b/hal/sandbox/SandboxHal.cpp
index 5501d459b..aeaeb724e 100644
--- a/hal/sandbox/SandboxHal.cpp
+++ b/hal/sandbox/SandboxHal.cpp
@@ -352,18 +352,6 @@ FactoryReset(FactoryResetReason& aReason)
}
}
-void
-StartDiskSpaceWatcher()
-{
- NS_RUNTIMEABORT("StartDiskSpaceWatcher() can't be called from sandboxed contexts.");
-}
-
-void
-StopDiskSpaceWatcher()
-{
- NS_RUNTIMEABORT("StopDiskSpaceWatcher() can't be called from sandboxed contexts.");
-}
-
bool IsHeadphoneEventFromInputDev()
{
NS_RUNTIMEABORT("IsHeadphoneEventFromInputDev() cannot be called from sandboxed contexts.");