Verified Commit 96a20e62 authored by aguestuser's avatar aguestuser
Browse files

Disable all telemetry "brutally"

parent 21ca451f
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -151,10 +151,7 @@ internal class ReleaseMetricController(

    private fun isInitialized(type: MetricServiceType): Boolean = initialized.contains(type)

    private fun isTelemetryEnabled(type: MetricServiceType): Boolean = when (type) {
        MetricServiceType.Data -> isDataTelemetryEnabled()
        MetricServiceType.Marketing -> isMarketingDataTelemetryEnabled()
    }
    private fun isTelemetryEnabled(@Suppress("UNUSED_PARAMETER") type: MetricServiceType): Boolean = false

    @Suppress("LongMethod", "MaxLineLength")
    private fun Fact.toEvent(): Event? = when {