From 3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 29 Sep 2018 23:55:49 +0200 Subject: Remove telemetry probes for cache file system. --- netwerk/cache2/CacheObserver.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'netwerk/cache2/CacheObserver.cpp') 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 CacheObserver::sMaxShutdownIOLag(kDefaultMaxShutdownIOLag); @@ -327,32 +324,6 @@ CacheObserver::StoreDiskCacheCapacity() sDiskCacheCapacity); } -// static -void -CacheObserver::SetCacheFSReported() -{ - sCacheFSReported = true; - - if (!sSelf) { - return; - } - - if (NS_IsMainThread()) { - sSelf->StoreCacheFSReported(); - } else { - nsCOMPtr 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) { -- cgit v1.2.3