summaryrefslogtreecommitdiffstats
path: root/dom/media/CubebUtils.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-10-01 13:23:56 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-10-01 13:23:56 +0200
commit38e8ee1e6ddaa0cfd5fd9476264cbdcbc65c8035 (patch)
tree44bcf644c2e98217f2083f201ae08bf0069b76b9 /dom/media/CubebUtils.cpp
parentec4c6dd42abcbf6fd081ce3da1dbf1b5ea9c0d8f (diff)
downloadUXP-38e8ee1e6ddaa0cfd5fd9476264cbdcbc65c8035.tar
UXP-38e8ee1e6ddaa0cfd5fd9476264cbdcbc65c8035.tar.gz
UXP-38e8ee1e6ddaa0cfd5fd9476264cbdcbc65c8035.tar.lz
UXP-38e8ee1e6ddaa0cfd5fd9476264cbdcbc65c8035.tar.xz
UXP-38e8ee1e6ddaa0cfd5fd9476264cbdcbc65c8035.zip
Remove telemetry reporting functions from CubebUtils
Tag #21.
Diffstat (limited to 'dom/media/CubebUtils.cpp')
-rw-r--r--dom/media/CubebUtils.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/dom/media/CubebUtils.cpp b/dom/media/CubebUtils.cpp
index 93792e63b..0f0167d9c 100644
--- a/dom/media/CubebUtils.cpp
+++ b/dom/media/CubebUtils.cpp
@@ -239,31 +239,6 @@ cubeb* GetCubebContextUnlocked()
return sCubebContext;
}
-void ReportCubebBackendUsed()
-{
- StaticMutexAutoLock lock(sMutex);
-
- sAudioStreamInitEverSucceeded = true;
-
- bool foundBackend = false;
- for (uint32_t i = 0; i < ArrayLength(AUDIOSTREAM_BACKEND_ID_STR); i++) {
- if (!strcmp(cubeb_get_backend_id(sCubebContext), AUDIOSTREAM_BACKEND_ID_STR[i])) {
- foundBackend = true;
- }
- }
-}
-
-void ReportCubebStreamInitFailure(bool aIsFirst)
-{
- StaticMutexAutoLock lock(sMutex);
- if (!aIsFirst && !sAudioStreamInitEverSucceeded) {
- // This machine has no audio hardware, or it's in really bad shape, don't
- // send this info, since we want CUBEB_BACKEND_INIT_FAILURE_OTHER to detect
- // failures to open multiple streams in a process over time.
- return;
- }
-}
-
uint32_t GetCubebPlaybackLatencyInMilliseconds()
{
StaticMutexAutoLock lock(sMutex);