summaryrefslogtreecommitdiffstats
path: root/netwerk/cache2/CacheObserver.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-29 23:55:49 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-29 23:55:49 +0200
commit3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5 (patch)
tree1cbff60940f1b9174d10b1ccbe526ba94b3cd0a8 /netwerk/cache2/CacheObserver.cpp
parent81b341a9b37acae2b60e0334a9b0846bc5be8445 (diff)
downloadUXP-3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5.tar
UXP-3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5.tar.gz
UXP-3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5.tar.lz
UXP-3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5.tar.xz
UXP-3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5.zip
Remove telemetry probes for cache file system.
Diffstat (limited to 'netwerk/cache2/CacheObserver.cpp')
-rw-r--r--netwerk/cache2/CacheObserver.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/netwerk/cache2/CacheObserver.cpp b/netwerk/cache2/CacheObserver.cpp
index 51afaf3a1..32e0dff95 100644
--- a/netwerk/cache2/CacheObserver.cpp
+++ b/netwerk/cache2/CacheObserver.cpp
@@ -86,9 +86,6 @@ bool CacheObserver::sSanitizeOnShutdown = kDefaultSanitizeOnShutdown;
static bool kDefaultClearCacheOnShutdown = false;
bool CacheObserver::sClearCacheOnShutdown = kDefaultClearCacheOnShutdown;
-static bool kDefaultCacheFSReported = false;
-bool CacheObserver::sCacheFSReported = kDefaultCacheFSReported;
-
static uint32_t const kDefaultMaxShutdownIOLag = 2; // seconds
Atomic<uint32_t, Relaxed> CacheObserver::sMaxShutdownIOLag(kDefaultMaxShutdownIOLag);
@@ -328,32 +325,6 @@ CacheObserver::StoreDiskCacheCapacity()
}
// static
-void
-CacheObserver::SetCacheFSReported()
-{
- sCacheFSReported = true;
-
- if (!sSelf) {
- return;
- }
-
- if (NS_IsMainThread()) {
- sSelf->StoreCacheFSReported();
- } else {
- nsCOMPtr<nsIRunnable> event =
- NewRunnableMethod(sSelf, &CacheObserver::StoreCacheFSReported);
- NS_DispatchToMainThread(event);
- }
-}
-
-void
-CacheObserver::StoreCacheFSReported()
-{
- mozilla::Preferences::SetInt("browser.cache.disk.filesystem_reported",
- sCacheFSReported);
-}
-
-// static
void CacheObserver::ParentDirOverride(nsIFile** aDir)
{
if (NS_WARN_IF(!aDir))