@@ -3,9 +3,6 @@ import { inject, Inject, Injectable } from "@angular/core";
3
3
4
4
import { AbstractThemingService } from "@bitwarden/angular/platform/services/theming/theming.service.abstraction" ;
5
5
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service" ;
6
- import { BulkEncryptService } from "@bitwarden/common/key-management/crypto/abstractions/bulk-encrypt.service" ;
7
- import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service" ;
8
- import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service" ;
9
6
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service" ;
10
7
import { LogService as LogServiceAbstraction } from "@bitwarden/common/platform/abstractions/log.service" ;
11
8
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service" ;
@@ -30,22 +27,13 @@ export class InitService {
30
27
private themingService : AbstractThemingService ,
31
28
private sdkLoadService : SdkLoadService ,
32
29
private viewCacheService : PopupViewCacheService ,
33
- private configService : ConfigService ,
34
- private encryptService : EncryptService ,
35
- private bulkEncryptService : BulkEncryptService ,
36
30
@Inject ( DOCUMENT ) private document : Document ,
37
31
) { }
38
32
39
33
init ( ) {
40
34
return async ( ) => {
41
35
await this . sdkLoadService . loadAndInit ( ) ;
42
36
await this . stateService . init ( { runMigrations : false } ) ; // Browser background is responsible for migrations
43
- this . configService . serverConfig$ . subscribe ( ( newConfig ) => {
44
- if ( newConfig != null ) {
45
- this . encryptService . onServerConfigChange ( newConfig ) ;
46
- this . bulkEncryptService . onServerConfigChange ( newConfig ) ;
47
- }
48
- } ) ;
49
37
await this . i18nService . init ( ) ;
50
38
this . twoFactorService . init ( ) ;
51
39
await this . viewCacheService . init ( ) ;
0 commit comments