From 8659d0975ddb7dc70c0246b4b9acf81e013cdde3 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 17 May 2021 13:20:44 +1000 Subject: [PATCH] Remove old code for opting into TOTP copy (#379) --- src/abstractions/totp.service.ts | 1 - src/services/constants.service.ts | 2 -- src/services/totp.service.ts | 4 ---- 3 files changed, 7 deletions(-) diff --git a/src/abstractions/totp.service.ts b/src/abstractions/totp.service.ts index 2dc7971456..608c7d1b3d 100644 --- a/src/abstractions/totp.service.ts +++ b/src/abstractions/totp.service.ts @@ -2,5 +2,4 @@ export abstract class TotpService { getCode: (key: string) => Promise; getTimeInterval: (key: string) => number; isAutoCopyEnabled: () => Promise; - isAutoCopyOnAutoFillEnabled: () => Promise; } diff --git a/src/services/constants.service.ts b/src/services/constants.service.ts index a140994451..23a24d134e 100644 --- a/src/services/constants.service.ts +++ b/src/services/constants.service.ts @@ -8,7 +8,6 @@ export class ConstantsService { static readonly disableBadgeCounterKey: string = 'disableBadgeCounter'; static readonly disableAutoTotpCopyKey: string = 'disableAutoTotpCopy'; static readonly enableAutoFillOnPageLoadKey: string = 'enableAutoFillOnPageLoad'; - static readonly enableAutoTotpCopyOnAutoFillKey: string = 'enableAutoTotpCopyOnAutoFillKey'; static readonly vaultTimeoutKey: string = 'lockOption'; static readonly vaultTimeoutActionKey: string = 'vaultTimeoutAction'; static readonly lastActiveKey: string = 'lastActive'; @@ -40,7 +39,6 @@ export class ConstantsService { readonly disableBadgeCounterKey: string = ConstantsService.disableBadgeCounterKey; readonly disableAutoTotpCopyKey: string = ConstantsService.disableAutoTotpCopyKey; readonly enableAutoFillOnPageLoadKey: string = ConstantsService.enableAutoFillOnPageLoadKey; - readonly enableAutoTotpCopyOnAutoFillKey: string = ConstantsService.enableAutoTotpCopyOnAutoFillKey; readonly vaultTimeoutKey: string = ConstantsService.vaultTimeoutKey; readonly vaultTimeoutActionKey: string = ConstantsService.vaultTimeoutActionKey; readonly lastActiveKey: string = ConstantsService.lastActiveKey; diff --git a/src/services/totp.service.ts b/src/services/totp.service.ts index 5f7a332aea..aa4f8dd143 100644 --- a/src/services/totp.service.ts +++ b/src/services/totp.service.ts @@ -109,10 +109,6 @@ export class TotpService implements TotpServiceAbstraction { return !(await this.storageService.get(ConstantsService.disableAutoTotpCopyKey)); } - async isAutoCopyOnAutoFillEnabled(): Promise { - return await this.storageService.get(ConstantsService.enableAutoTotpCopyOnAutoFillKey); - } - // Helpers private leftPad(s: string, l: number, p: string): string {