Skip to content

Commit 22b68e0

Browse files
authored
build: clean up unused imports (angular#29695)
Updates to the latest version of Angular which reports unused standalone imports.
1 parent 13e7a92 commit 22b68e0

File tree

10 files changed

+485
-417
lines changed

10 files changed

+485
-417
lines changed

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
},
5757
"version": "19.0.0-next.3",
5858
"dependencies": {
59-
"@angular/animations": "^19.0.0-next.2",
60-
"@angular/common": "^19.0.0-next.2",
61-
"@angular/compiler": "^19.0.0-next.2",
62-
"@angular/core": "^19.0.0-next.2",
63-
"@angular/forms": "^19.0.0-next.2",
64-
"@angular/platform-browser": "^19.0.0-next.2",
59+
"@angular/animations": "^19.0.0-next.3",
60+
"@angular/common": "^19.0.0-next.3",
61+
"@angular/compiler": "^19.0.0-next.3",
62+
"@angular/core": "^19.0.0-next.3",
63+
"@angular/forms": "^19.0.0-next.3",
64+
"@angular/platform-browser": "^19.0.0-next.3",
6565
"@types/google.maps": "^3.54.10",
6666
"@types/youtube": "^0.0.50",
6767
"rxjs": "^6.6.7",
@@ -70,19 +70,19 @@
7070
"zone.js": "~0.15.0"
7171
},
7272
"devDependencies": {
73-
"@angular-devkit/build-angular": "^19.0.0-next.2",
74-
"@angular-devkit/core": "^19.0.0-next.2",
75-
"@angular-devkit/schematics": "^19.0.0-next.2",
73+
"@angular-devkit/build-angular": "^19.0.0-next.3",
74+
"@angular-devkit/core": "^19.0.0-next.3",
75+
"@angular-devkit/schematics": "^19.0.0-next.3",
7676
"@angular/bazel": "https://github.com/angular/bazel-builds.git#9e6140d1eef8ddf7113d00738f603e9cc3c310f1",
7777
"@angular/build-tooling": "https://github.com/angular/dev-infra-private-build-tooling-builds.git#74e0e7b090c6e16056290836b2d936ca7820b86f",
78-
"@angular/build": "^19.0.0-next.2",
79-
"@angular/cli": "^19.0.0-next.2",
80-
"@angular/compiler-cli": "^19.0.0-next.2",
81-
"@angular/localize": "^19.0.0-next.2",
78+
"@angular/build": "^19.0.0-next.3",
79+
"@angular/cli": "^19.0.0-next.3",
80+
"@angular/compiler-cli": "^19.0.0-next.3",
81+
"@angular/localize": "^19.0.0-next.3",
8282
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#36946be4df61f6549ae3829c026022e47674eae2",
83-
"@angular/platform-browser-dynamic": "^19.0.0-next.2",
84-
"@angular/platform-server": "^19.0.0-next.2",
85-
"@angular/router": "^19.0.0-next.2",
83+
"@angular/platform-browser-dynamic": "^19.0.0-next.3",
84+
"@angular/platform-server": "^19.0.0-next.3",
85+
"@angular/router": "^19.0.0-next.3",
8686
"@babel/core": "^7.16.12",
8787
"@babel/helper-explode-assignable-expression": "^7.18.6",
8888
"@babel/helper-string-parser": "^7.22.5",
@@ -102,7 +102,7 @@
102102
"@octokit/rest": "18.3.5",
103103
"@rollup/plugin-commonjs": "^21.0.0",
104104
"@rollup/plugin-node-resolve": "^13.1.3",
105-
"@schematics/angular": "^19.0.0-next.2",
105+
"@schematics/angular": "^19.0.0-next.3",
106106
"@types/babel__core": "^7.1.18",
107107
"@types/browser-sync": "^2.26.3",
108108
"@types/fs-extra": "^9.0.13",

src/components-examples/material/autocomplete/autocomplete-require-selection/autocomplete-require-selection-example.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {Component, ElementRef, ViewChild} from '@angular/core';
22
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
3-
import {AsyncPipe} from '@angular/common';
43
import {MatAutocompleteModule} from '@angular/material/autocomplete';
54
import {MatInputModule} from '@angular/material/input';
65
import {MatFormFieldModule} from '@angular/material/form-field';
@@ -19,7 +18,6 @@ import {MatFormFieldModule} from '@angular/material/form-field';
1918
MatInputModule,
2019
MatAutocompleteModule,
2120
ReactiveFormsModule,
22-
AsyncPipe,
2321
],
2422
})
2523
export class AutocompleteRequireSelectionExample {

src/dev-app/datepicker/datepicker-demo.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ export class CustomHeaderNgContent<D> {
189189
MatInputModule,
190190
MatSelectModule,
191191
ReactiveFormsModule,
192-
CustomHeader,
193-
CustomHeaderNgContent,
194192
CustomRangeStrategy,
195193
],
196194
})

src/dev-app/portal/portal-demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class ScienceJoke {}
2929
templateUrl: 'portal-demo.html',
3030
styleUrl: 'portal-demo.css',
3131
standalone: true,
32-
imports: [PortalModule, ScienceJoke],
32+
imports: [PortalModule],
3333
changeDetection: ChangeDetectionStrategy.OnPush,
3434
})
3535
export class PortalDemo {

src/dev-app/table/table-demo.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,19 @@ import {
1414
} from '@angular/components-examples/cdk/table';
1515
import {
1616
TableBasicExample,
17-
TableColumnStylingExample,
18-
TableDynamicArrayDataExample,
1917
TableDynamicColumnsExample,
20-
TableDynamicObservableDataExample,
2118
TableExpandableRowsExample,
2219
TableFilteringExample,
2320
TableFlexBasicExample,
2421
TableFlexLargeRowExample,
2522
TableFooterRowExample,
26-
TableGeneratedColumnsExample,
27-
TableHarnessExample,
2823
TableHttpExample,
2924
TableMultipleHeaderFooterExample,
3025
TableMultipleRowTemplateExample,
3126
TableOverviewExample,
3227
TablePaginationExample,
3328
TableRecycleRowsExample,
3429
TableReorderableExample,
35-
TableRowBindingExample,
3630
TableRowContextExample,
3731
TableSelectionExample,
3832
TableSortingExample,
@@ -43,7 +37,6 @@ import {
4337
TableStickyHeaderExample,
4438
TableTextColumnAdvancedExample,
4539
TableTextColumnExample,
46-
TableWithRipplesExample,
4740
TableWrappedExample,
4841
} from '@angular/components-examples/material/table';
4942
import {ChangeDetectionStrategy, Component} from '@angular/core';
@@ -80,13 +73,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core';
8073
TableWrappedExample,
8174
TableReorderableExample,
8275
TableRecycleRowsExample,
83-
TableHarnessExample,
84-
TableWithRipplesExample,
85-
TableColumnStylingExample,
86-
TableRowBindingExample,
87-
TableDynamicArrayDataExample,
88-
TableDynamicObservableDataExample,
89-
TableGeneratedColumnsExample,
9076
TableFlexLargeRowExample,
9177
],
9278
changeDetection: ChangeDetectionStrategy.OnPush,

src/dev-app/tabs/tabs-demo.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ import {
1414
TabGroupCustomLabelExample,
1515
TabGroupDynamicExample,
1616
TabGroupDynamicHeightExample,
17-
TabGroupHarnessExample,
1817
TabGroupHeaderBelowExample,
1918
TabGroupInkBarExample,
2019
TabGroupInvertedExample,
2120
TabGroupLazyLoadedExample,
2221
TabGroupPaginatedExample,
23-
TabGroupPreserveContentExample,
2422
TabGroupStretchedExample,
2523
TabNavBarBasicExample,
2624
} from '@angular/components-examples/material/tabs';
@@ -37,11 +35,9 @@ import {MatTabsModule} from '@angular/material/tabs';
3735
TabGroupPaginatedExample,
3836
TabNavBarBasicExample,
3937
TabGroupStretchedExample,
40-
TabGroupPreserveContentExample,
4138
TabGroupLazyLoadedExample,
4239
TabGroupHeaderBelowExample,
4340
TabGroupDynamicExample,
44-
TabGroupHarnessExample,
4541
TabGroupAlignExample,
4642
TabGroupAnimationsExample,
4743
TabGroupAsyncExample,

src/dev-app/toolbar/toolbar-demo.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {
10-
ToolbarBasicExample,
11-
ToolbarHarnessExample,
12-
ToolbarMultirowExample,
13-
ToolbarOverviewExample,
14-
} from '@angular/components-examples/material/toolbar';
9+
import {ToolbarOverviewExample} from '@angular/components-examples/material/toolbar';
1510
import {ToolbarSimpleExample} from '@angular/components-examples/material/toolbar/toolbar-simple/toolbar-simple-example';
1611
import {ChangeDetectionStrategy, Component} from '@angular/core';
1712
import {MatButtonModule} from '@angular/material/button';
@@ -27,11 +22,8 @@ import {MatToolbarModule} from '@angular/material/toolbar';
2722
MatButtonModule,
2823
MatIconModule,
2924
MatToolbarModule,
30-
ToolbarBasicExample,
31-
ToolbarMultirowExample,
3225
ToolbarOverviewExample,
3326
ToolbarSimpleExample,
34-
ToolbarHarnessExample,
3527
],
3628
changeDetection: ChangeDetectionStrategy.OnPush,
3729
})

src/dev-app/tooltip/tooltip-demo.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
TooltipCustomClassExample,
1111
TooltipDelayExample,
1212
TooltipDisabledExample,
13-
TooltipHarnessExample,
1413
TooltipManualExample,
1514
TooltipMessageExample,
1615
TooltipModifiedDefaultsExample,
@@ -35,7 +34,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core';
3534
TooltipOverviewExample,
3635
TooltipPositionExample,
3736
TooltipPositionAtOriginExample,
38-
TooltipHarnessExample,
3937
],
4038
changeDetection: ChangeDetectionStrategy.OnPush,
4139
})

src/dev-app/tree/tree-demo.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
import {
2121
TreeDynamicExample,
2222
TreeFlatOverviewExample,
23-
TreeHarnessExample,
2423
TreeLegacyKeyboardInterfaceExample,
2524
TreeLoadmoreExample,
2625
TreeNestedOverviewExample,
@@ -55,7 +54,6 @@ import {MatTreeModule} from '@angular/material/tree';
5554
FormsModule,
5655
TreeDynamicExample,
5756
TreeFlatOverviewExample,
58-
TreeHarnessExample,
5957
TreeLegacyKeyboardInterfaceExample,
6058
TreeLoadmoreExample,
6159
TreeNestedOverviewExample,

0 commit comments

Comments
 (0)