diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-10-01 11:00:05 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-10-01 11:00:05 +0200 |
commit | e233a0db10fb93d20ff4ab0f1fddc784bb526312 (patch) | |
tree | 03dad78c203c74a217b9d23f847d07f23993a018 /netwerk | |
parent | 0aef9de3a24a4fa7f2703aebe4189a77dd238c57 (diff) | |
download | uxp-e233a0db10fb93d20ff4ab0f1fddc784bb526312.tar.gz |
Remove unused telemetry functions/variables.
Tag mcp-graveyard/UXP#21.
Diffstat (limited to 'netwerk')
-rw-r--r-- | netwerk/cache2/CacheFile.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/netwerk/cache2/CacheFile.cpp b/netwerk/cache2/CacheFile.cpp index ce771c754c..69fc3d33c7 100644 --- a/netwerk/cache2/CacheFile.cpp +++ b/netwerk/cache2/CacheFile.cpp @@ -1865,33 +1865,6 @@ CacheFile::Truncate(int64_t aOffset) return NS_OK; } -static uint32_t -StatusToTelemetryEnum(nsresult aStatus) -{ - if (NS_SUCCEEDED(aStatus)) { - return 0; - } - - switch (aStatus) { - case NS_BASE_STREAM_CLOSED: - return 0; // Log this as a success - case NS_ERROR_OUT_OF_MEMORY: - return 2; - case NS_ERROR_FILE_DISK_FULL: - return 3; - case NS_ERROR_FILE_CORRUPTED: - return 4; - case NS_ERROR_FILE_NOT_FOUND: - return 5; - case NS_BINDING_ABORTED: - return 6; - default: - return 1; // other error - } - - NS_NOTREACHED("We should never get here"); -} - nsresult CacheFile::RemoveInput(CacheFileInputStream *aInput, nsresult aStatus) { |