diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 093da81f182..87d85f8174d 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -178,7 +178,6 @@ export class Main { this.biometricsService = new BiometricsService( this.i18nService, this.windowMain, - this.stateService, this.logService, this.messagingService, process.platform, diff --git a/apps/desktop/src/platform/main/biometric/biometrics.service.spec.ts b/apps/desktop/src/platform/main/biometric/biometrics.service.spec.ts index c7f48aac22c..ef8510dd676 100644 --- a/apps/desktop/src/platform/main/biometric/biometrics.service.spec.ts +++ b/apps/desktop/src/platform/main/biometric/biometrics.service.spec.ts @@ -3,7 +3,6 @@ import { mock, MockProxy } from "jest-mock-extended"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { LogService } from "@bitwarden/common/platform/abstractions/log.service"; import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service"; -import { StateService } from "@bitwarden/common/platform/abstractions/state.service"; import { BiometricStateService } from "@bitwarden/common/platform/biometrics/biometric-state.service"; import { UserId } from "@bitwarden/common/types/guid"; @@ -24,7 +23,6 @@ jest.mock("@bitwarden/desktop-native", () => { describe("biometrics tests", function () { const i18nService = mock(); const windowMain = mock(); - const stateService = mock(); const logService = mock(); const messagingService = mock(); const biometricStateService = mock(); @@ -34,7 +32,6 @@ describe("biometrics tests", function () { const sut = new BiometricsService( i18nService, windowMain, - stateService, logService, messagingService, process.platform, @@ -59,7 +56,6 @@ describe("biometrics tests", function () { const sut = new BiometricsService( i18nService, windowMain, - stateService, logService, messagingService, "win32", @@ -75,7 +71,6 @@ describe("biometrics tests", function () { const sut = new BiometricsService( i18nService, windowMain, - stateService, logService, messagingService, "darwin", @@ -96,7 +91,6 @@ describe("biometrics tests", function () { sut = new BiometricsService( i18nService, windowMain, - stateService, logService, messagingService, process.platform, diff --git a/apps/desktop/src/platform/main/biometric/biometrics.service.ts b/apps/desktop/src/platform/main/biometric/biometrics.service.ts index 301de1a9940..b0331cce3e1 100644 --- a/apps/desktop/src/platform/main/biometric/biometrics.service.ts +++ b/apps/desktop/src/platform/main/biometric/biometrics.service.ts @@ -1,7 +1,6 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { LogService } from "@bitwarden/common/platform/abstractions/log.service"; import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service"; -import { StateService } from "@bitwarden/common/platform/abstractions/state.service"; import { BiometricStateService } from "@bitwarden/common/platform/biometrics/biometric-state.service"; import { UserId } from "@bitwarden/common/types/guid"; @@ -16,7 +15,6 @@ export class BiometricsService implements BiometricsServiceAbstraction { constructor( private i18nService: I18nService, private windowMain: WindowMain, - private stateService: StateService, private logService: LogService, private messagingService: MessagingService, private platform: NodeJS.Platform, @@ -41,7 +39,6 @@ export class BiometricsService implements BiometricsServiceAbstraction { this.platformSpecificService = new BiometricWindowsMain( this.i18nService, this.windowMain, - this.stateService, this.logService, ); } @@ -49,7 +46,7 @@ export class BiometricsService implements BiometricsServiceAbstraction { private loadMacOSService() { // eslint-disable-next-line const BiometricDarwinMain = require("./biometric.darwin.main").default; - this.platformSpecificService = new BiometricDarwinMain(this.i18nService, this.stateService); + this.platformSpecificService = new BiometricDarwinMain(this.i18nService); } private loadNoopBiometricsService() {