From 62575336d58c62ccf0a78dc153cba99dd87c10ce Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 14 Jul 2023 12:20:40 +0200 Subject: [PATCH] Remove unused method (#5821) --- .../src/platform/abstractions/environment.service.ts | 5 ----- .../src/platform/services/environment.service.ts | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/libs/common/src/platform/abstractions/environment.service.ts b/libs/common/src/platform/abstractions/environment.service.ts index bf91628cafb..37a3169d2f5 100644 --- a/libs/common/src/platform/abstractions/environment.service.ts +++ b/libs/common/src/platform/abstractions/environment.service.ts @@ -65,9 +65,4 @@ export abstract class EnvironmentService { getUrls: () => Urls; isCloud: () => boolean; isEmpty: () => boolean; - /** - * @remarks For desktop and browser use only. - * For web, use PlatformUtilsService.isSelfHost() - */ - isSelfHosted: () => boolean; } diff --git a/libs/common/src/platform/services/environment.service.ts b/libs/common/src/platform/services/environment.service.ts index e77f259c12d..cd93b91e25b 100644 --- a/libs/common/src/platform/services/environment.service.ts +++ b/libs/common/src/platform/services/environment.service.ts @@ -338,15 +338,4 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { "https://vault.bitwarden.eu/api", ].includes(this.getApiUrl()); } - - isSelfHosted(): boolean { - return ![ - "http://vault.bitwarden.com", - "https://vault.bitwarden.com", - "http://vault.bitwarden.eu", - "https://vault.bitwarden.eu", - "http://vault.qa.bitwarden.pw", - "https://vault.qa.bitwarden.pw", - ].includes(this.getWebVaultUrl()); - } }