From 7f8d0d7084c0f960a4ad9da814b27cbdebeb57bc Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Tue, 15 Dec 2020 15:28:39 -0800 Subject: [PATCH] remove now-unused clearDidOptIn --- src/main/ScratchDesktopTelemetry.js | 3 --- src/main/telemetry/TelemetryClient.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/main/ScratchDesktopTelemetry.js b/src/main/ScratchDesktopTelemetry.js index 802b8f9..906a7d4 100644 --- a/src/main/ScratchDesktopTelemetry.js +++ b/src/main/ScratchDesktopTelemetry.js @@ -36,9 +36,6 @@ class ScratchDesktopTelemetry { set didOptIn (value) { this._telemetryClient.didOptIn = value; } - clearDidOptIn () { - this._telemetryClient.clearDidOptIn(); - } appWasOpened () { this._telemetryClient.addEvent('app::open', {...EVENT_TEMPLATE, ...APP_INFO}); diff --git a/src/main/telemetry/TelemetryClient.js b/src/main/telemetry/TelemetryClient.js index fafda8b..c38cb5b 100644 --- a/src/main/telemetry/TelemetryClient.js +++ b/src/main/telemetry/TelemetryClient.js @@ -185,9 +185,6 @@ class TelemetryClient { set didOptIn (value) { this._store.set('optIn', !!value); } - clearDidOptIn () { - this._store.delete('optIn'); - } /** * Semi-persistent unique ID for this client