From 10a0abb8c23eddbb11ce9900bc8fe85127ee8459 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Mon, 6 Jun 2022 14:04:16 +0000 Subject: [PATCH] Remove unused `activeConfirmationView` --- ts/background.ts | 9 --------- ts/window.d.ts | 1 - 2 files changed, 10 deletions(-) diff --git a/ts/background.ts b/ts/background.ts index 3fd96e389..bd01fb746 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1301,15 +1301,6 @@ export async function startApp(): Promise { } } - // Close window.Backbone-based confirmation dialog - if (window.Whisper.activeConfirmationView && key === 'Escape') { - window.Whisper.activeConfirmationView.remove(); - window.Whisper.activeConfirmationView = null; - event.preventDefault(); - event.stopPropagation(); - return; - } - // Send Escape to active conversation so it can close panels if (conversation && key === 'Escape') { conversation.trigger('escape-pressed'); diff --git a/ts/window.d.ts b/ts/window.d.ts index 3e3b05de9..a7c7bfc4b 100644 --- a/ts/window.d.ts +++ b/ts/window.d.ts @@ -503,7 +503,6 @@ export type WhisperType = { deliveryReceiptQueue: PQueue; deliveryReceiptBatcher: BatcherType; events: Backbone.Events; - activeConfirmationView: WhatIsThis; // Backbone views