Skip to content

Commit 4ec00ba

Browse files
committed
fix(material/sidenav): remove deprecated factory functions
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone. BREAKING CHANGE: * `MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY` has been removed.
1 parent 479b4e3 commit 4ec00ba

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

goldens/material/sidenav/index.api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ import { Subject } from 'rxjs';
2525
// @public
2626
export const MAT_DRAWER_DEFAULT_AUTOSIZE: InjectionToken<boolean>;
2727

28-
// @public @deprecated
29-
export function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
30-
3128
// @public
3229
export class MatDrawer implements AfterViewInit, OnDestroy {
3330
constructor(...args: unknown[]);

src/material/sidenav/drawer.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const MAT_DRAWER_DEFAULT_AUTOSIZE = new InjectionToken<boolean>(
7070
'MAT_DRAWER_DEFAULT_AUTOSIZE',
7171
{
7272
providedIn: 'root',
73-
factory: MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY,
73+
factory: () => false,
7474
},
7575
);
7676

@@ -80,15 +80,6 @@ export const MAT_DRAWER_DEFAULT_AUTOSIZE = new InjectionToken<boolean>(
8080
*/
8181
export const MAT_DRAWER_CONTAINER = new InjectionToken('MAT_DRAWER_CONTAINER');
8282

83-
/**
84-
* @docs-private
85-
* @deprecated No longer used, will be removed.
86-
* @breaking-change 21.0.0
87-
*/
88-
export function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean {
89-
return false;
90-
}
91-
9283
@Component({
9384
selector: 'mat-drawer-content',
9485
template: '<ng-content></ng-content>',

src/material/sidenav/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export {
1111
throwMatDuplicatedDrawerError,
1212
MatDrawerToggleResult,
1313
MAT_DRAWER_DEFAULT_AUTOSIZE,
14-
MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY,
1514
MatDrawerContent,
1615
MatDrawer,
1716
MatDrawerContainer,

0 commit comments

Comments
 (0)