Browse Source

Remove unused method (#5821)

ps/beeep-browser-recover
Oscar Hinton 2 years ago committed by GitHub
parent
commit
62575336d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      libs/common/src/platform/abstractions/environment.service.ts
  2. 11
      libs/common/src/platform/services/environment.service.ts

5
libs/common/src/platform/abstractions/environment.service.ts

@ -65,9 +65,4 @@ export abstract class EnvironmentService { @@ -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;
}

11
libs/common/src/platform/services/environment.service.ts

@ -338,15 +338,4 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { @@ -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());
}
}

Loading…
Cancel
Save