From c038c3c9c692f448a5adc814001a1ac9276a9c3e Mon Sep 17 00:00:00 2001 From: Hinton Date: Thu, 19 Dec 2024 11:34:10 +0100 Subject: [PATCH] Remove supported$ --- libs/common/src/platform/abstractions/sdk/sdk.service.ts | 5 ----- .../common/src/platform/services/sdk/default-sdk.service.ts | 6 ------ 2 files changed, 11 deletions(-) diff --git a/libs/common/src/platform/abstractions/sdk/sdk.service.ts b/libs/common/src/platform/abstractions/sdk/sdk.service.ts index b2cfcbfd273..d44d38c36ab 100644 --- a/libs/common/src/platform/abstractions/sdk/sdk.service.ts +++ b/libs/common/src/platform/abstractions/sdk/sdk.service.ts @@ -7,11 +7,6 @@ import { BitwardenClient } from "@bitwarden/sdk-internal"; import { UserId } from "../../../types/guid"; export abstract class SdkService { - /** - * Check if the SDK is supported in the current environment. - */ - supported$: Observable; - /** * Retrieve the version of the SDK. */ diff --git a/libs/common/src/platform/services/sdk/default-sdk.service.ts b/libs/common/src/platform/services/sdk/default-sdk.service.ts index 6e9dc18b1a2..f192de436f0 100644 --- a/libs/common/src/platform/services/sdk/default-sdk.service.ts +++ b/libs/common/src/platform/services/sdk/default-sdk.service.ts @@ -44,12 +44,6 @@ export class DefaultSdkService implements SdkService { shareReplay({ refCount: true, bufferSize: 1 }), ); - supported$ = this.client$.pipe( - concatMap(async (client) => { - return client.echo("bitwarden wasm!") === "bitwarden wasm!"; - }), - ); - version$ = this.client$.pipe( map((client) => client.version()), catchError(() => "Unsupported"),