Skip to content

Commit 745ab21

Browse files
authored
Remove unused imports in browser and desktop (#14875)
Removes unused imports from browser and desktop. These were missed in #14795.
1 parent 56b565a commit 745ab21

File tree

12 files changed

+4
-37
lines changed

12 files changed

+4
-37
lines changed

apps/browser/src/autofill/popup/fido2/fido2-cipher-row.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
ButtonModule,
1111
IconButtonModule,
1212
ItemModule,
13-
SectionComponent,
14-
SectionHeaderComponent,
1513
TypographyModule,
1614
} from "@bitwarden/components";
1715

@@ -27,8 +25,6 @@ import {
2725
IconButtonModule,
2826
ItemModule,
2927
JslibModule,
30-
SectionComponent,
31-
SectionHeaderComponent,
3228
TypographyModule,
3329
],
3430
})

apps/browser/src/autofill/popup/settings/notifications.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
} from "@bitwarden/components";
1919

2020
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
21-
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
2221
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
2322
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
2423

@@ -31,7 +30,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
3130
RouterModule,
3231
PopupPageComponent,
3332
PopupHeaderComponent,
34-
PopupFooterComponent,
3533
PopOutComponent,
3634
ItemModule,
3735
CardComponent,

apps/browser/src/platform/popup/layout/popup-layout.stories.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class MockVaultPageComponent {}
185185
PopupPageComponent,
186186
PopupHeaderComponent,
187187
MockAddButtonComponent,
188-
MockPopoutButtonComponent,
189188
MockCurrentAccountComponent,
190189
VaultComponent,
191190
],
@@ -290,9 +289,7 @@ class MockSettingsPageComponent {}
290289
PopupHeaderComponent,
291290
PopupFooterComponent,
292291
ButtonModule,
293-
MockAddButtonComponent,
294292
MockPopoutButtonComponent,
295-
MockCurrentAccountComponent,
296293
VaultComponent,
297294
IconButtonModule,
298295
],

apps/browser/src/tools/popup/generator/credential-generator.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { GeneratorModule } from "@bitwarden/generator-components";
77

88
import { CurrentAccountComponent } from "../../../auth/popup/account-switching/current-account.component";
99
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
10-
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
1110
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
1211
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
1312

@@ -22,7 +21,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
2221
PopOutComponent,
2322
PopupHeaderComponent,
2423
PopupPageComponent,
25-
PopupFooterComponent,
2624
RouterModule,
2725
ItemModule,
2826
],

apps/browser/src/tools/popup/send-v2/send-created/send-created.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { CommonModule } from "@angular/common";
44
import { Component } from "@angular/core";
55
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
6-
import { ActivatedRoute, Router, RouterLink, RouterModule } from "@angular/router";
6+
import { ActivatedRoute, Router, RouterModule } from "@angular/router";
77
import { firstValueFrom } from "rxjs";
88

99
import { JslibModule } from "@bitwarden/angular/jslib.module";
@@ -31,7 +31,6 @@ import { PopupPageComponent } from "../../../../platform/popup/layout/popup-page
3131
PopOutComponent,
3232
PopupHeaderComponent,
3333
PopupPageComponent,
34-
RouterLink,
3534
RouterModule,
3635
PopupFooterComponent,
3736
IconModule,

apps/browser/src/vault/popup/components/vault-v2/attachments/open-attachments/open-attachments.component.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ import { ProductTierType } from "@bitwarden/common/billing/enums";
1818
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
1919
import { CipherId } from "@bitwarden/common/types/guid";
2020
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
21-
import {
22-
BadgeModule,
23-
CardComponent,
24-
ItemModule,
25-
ToastService,
26-
TypographyModule,
27-
} from "@bitwarden/components";
21+
import { BadgeModule, ItemModule, ToastService, TypographyModule } from "@bitwarden/components";
2822

2923
import BrowserPopupUtils from "../../../../../../platform/popup/browser-popup-utils";
3024
import { FilePopoutUtilsService } from "../../../../../../tools/popup/services/file-popout-utils.service";
@@ -33,7 +27,7 @@ import { FilePopoutUtilsService } from "../../../../../../tools/popup/services/f
3327
standalone: true,
3428
selector: "app-open-attachments",
3529
templateUrl: "./open-attachments.component.html",
36-
imports: [BadgeModule, CommonModule, ItemModule, JslibModule, TypographyModule, CardComponent],
30+
imports: [BadgeModule, CommonModule, ItemModule, JslibModule, TypographyModule],
3731
})
3832
export class OpenAttachmentsComponent implements OnInit {
3933
/** Cipher `id` */

apps/browser/src/vault/popup/components/vault-v2/autofill-vault-list-items/autofill-vault-list-items.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ import { combineLatest, map, Observable } from "rxjs";
66
import { JslibModule } from "@bitwarden/angular/jslib.module";
77
import { VaultSettingsService } from "@bitwarden/common/vault/abstractions/vault-settings/vault-settings.service";
88
import { CipherType } from "@bitwarden/common/vault/enums";
9-
import {
10-
IconButtonModule,
11-
SectionComponent,
12-
SectionHeaderComponent,
13-
TypographyModule,
14-
} from "@bitwarden/components";
9+
import { IconButtonModule, TypographyModule } from "@bitwarden/components";
1510

1611
import BrowserPopupUtils from "../../../../../platform/popup/browser-popup-utils";
1712
import { VaultPopupAutofillService } from "../../../services/vault-popup-autofill.service";
@@ -23,11 +18,9 @@ import { VaultListItemsContainerComponent } from "../vault-list-items-container/
2318
standalone: true,
2419
imports: [
2520
CommonModule,
26-
SectionComponent,
2721
TypographyModule,
2822
VaultListItemsContainerComponent,
2923
JslibModule,
30-
SectionHeaderComponent,
3124
IconButtonModule,
3225
],
3326
selector: "app-autofill-vault-list-items",

apps/browser/src/vault/popup/components/vault-v2/vault-list-items-container/vault-list-items-container.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ import { ItemMoreOptionsComponent } from "../item-more-options/item-more-options
7474
ScrollingModule,
7575
DisclosureComponent,
7676
DisclosureTriggerForDirective,
77-
DecryptionFailureDialogComponent,
7877
],
7978
selector: "app-vault-list-items-container",
8079
templateUrl: "vault-list-items-container.component.html",

apps/browser/src/vault/popup/settings/download-bitwarden.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { AccountService } from "@bitwarden/common/auth/abstractions/account.serv
99
import { getUserId } from "@bitwarden/common/auth/services/account.service";
1010
import { CardComponent, LinkModule, TypographyModule } from "@bitwarden/components";
1111

12-
import { CurrentAccountComponent } from "../../../auth/popup/account-switching/current-account.component";
1312
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
1413
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
1514
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
@@ -26,7 +25,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
2625
PopOutComponent,
2726
CardComponent,
2827
TypographyModule,
29-
CurrentAccountComponent,
3028
LinkModule,
3129
],
3230
})

apps/browser/src/vault/popup/settings/trash-list-items-container/trash-list-items-container.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ import { PopupCipherView } from "../../views/popup-cipher.view";
4949
IconButtonModule,
5050
OrgIconDirective,
5151
TypographyModule,
52-
DecryptionFailureDialogComponent,
5352
],
5453
changeDetection: ChangeDetectionStrategy.OnPush,
5554
})

apps/browser/src/vault/popup/settings/vault-settings-v2.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { ItemModule, ToastOptions, ToastService } from "@bitwarden/components";
1010
import { BrowserApi } from "../../../platform/browser/browser-api";
1111
import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils";
1212
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
13-
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
1413
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
1514
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
1615

@@ -22,7 +21,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
2221
JslibModule,
2322
RouterModule,
2423
PopupPageComponent,
25-
PopupFooterComponent,
2624
PopupHeaderComponent,
2725
PopOutComponent,
2826
ItemModule,

apps/desktop/src/platform/components/approve-ssh-request.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
IconButtonModule,
1414
DialogService,
1515
} from "@bitwarden/components";
16-
import { CipherFormGeneratorComponent } from "@bitwarden/vault";
1716

1817
export interface ApproveSshRequestParams {
1918
cipherName: string;
@@ -30,7 +29,6 @@ export interface ApproveSshRequestParams {
3029
DialogModule,
3130
CommonModule,
3231
JslibModule,
33-
CipherFormGeneratorComponent,
3432
ButtonModule,
3533
IconButtonModule,
3634
ReactiveFormsModule,

0 commit comments

Comments
 (0)