diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-08 10:49:03 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-08 10:49:03 +0100 |
commit | 60c83971fb19dea49beab3a02c8913f75f62ad09 (patch) | |
tree | 90b3528a725b148a1e05f3a5a520ca3d336ca0d9 /hal | |
parent | aff468a486995dd7a31aca182666aeb6da713467 (diff) | |
download | uxp-60c83971fb19dea49beab3a02c8913f75f62ad09.tar.gz |
Issue #1263 - Part 1: Remove DiskSpaceWatcher
Diffstat (limited to 'hal')
-rw-r--r-- | hal/Hal.cpp | 16 | ||||
-rw-r--r-- | hal/Hal.h | 14 | ||||
-rw-r--r-- | hal/fallback/FallbackDiskSpaceWatcher.cpp | 19 | ||||
-rw-r--r-- | hal/moz.build | 1 | ||||
-rw-r--r-- | hal/sandbox/SandboxHal.cpp | 12 |
5 files changed, 0 insertions, 62 deletions
diff --git a/hal/Hal.cpp b/hal/Hal.cpp index f88efd6cc3..67930c3558 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() { @@ -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 99d144397d..0000000000 --- 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 3e1bae4048..8d2950ac01 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 5501d459bd..aeaeb724ed 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."); |