From 83ef310400eb9916a33e7a04d9a396d3fc6a12bb Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Thu, 30 Sep 2021 16:51:53 +0200 Subject: [PATCH] Removed dead code from getDataForTab --- src/background/runtime.background.ts | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index 2fce414f08..2bf14393b0 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -476,29 +476,7 @@ export default class RuntimeBackground { private async getDataForTab(tab: any, responseCommand: string) { const responseData: any = {}; - if (responseCommand === 'notificationBarDataResponse') { - responseData.neverDomains = await this.storageService.get(ConstantsService.neverDomainsKey); - const disableAddLoginFromOptions = await this.storageService.get( - ConstantsService.disableAddLoginNotificationKey); - responseData.disabledAddLoginNotification = disableAddLoginFromOptions || !(await this.allowPersonalOwnership()); - responseData.disabledChangedPasswordNotification = await this.storageService.get( - ConstantsService.disableChangedPasswordNotificationKey); - } else if (responseCommand === 'autofillerAutofillOnPageLoadEnabledResponse') { - responseData.autofillEnabled = await this.storageService.get( - ConstantsService.enableAutoFillOnPageLoadKey); - } else if (responseCommand === 'notificationBarFrameDataResponse') { - responseData.i18n = { - appName: this.i18nService.t('appName'), - close: this.i18nService.t('close'), - yes: this.i18nService.t('yes'), - never: this.i18nService.t('never'), - notificationAddSave: this.i18nService.t('notificationAddSave'), - notificationNeverSave: this.i18nService.t('notificationNeverSave'), - notificationAddDesc: this.i18nService.t('notificationAddDesc'), - notificationChangeSave: this.i18nService.t('notificationChangeSave'), - notificationChangeDesc: this.i18nService.t('notificationChangeDesc'), - }; - } else if (responseCommand === 'notificationBarGetFoldersList') { + if (responseCommand === 'notificationBarGetFoldersList') { responseData.folders = await this.folderService.getAllDecrypted(); }