Skip to content

Commit 6cee2b9

Browse files
committed
fix(material-moment-adapter): 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_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY` has been removed.
1 parent c1486fb commit 6cee2b9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/material-moment-adapter/adapter/moment-date-adapter.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,10 @@ export const MAT_MOMENT_DATE_ADAPTER_OPTIONS = new InjectionToken<MatMomentDateA
4040
'MAT_MOMENT_DATE_ADAPTER_OPTIONS',
4141
{
4242
providedIn: 'root',
43-
factory: MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY,
43+
factory: () => ({useUtc: false}),
4444
},
4545
);
4646

47-
/**
48-
* @docs-private
49-
* @deprecated No longer used, will be removed.
50-
* @breaking-change 21.0.0
51-
*/
52-
export function MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY(): MatMomentDateAdapterOptions {
53-
return {
54-
useUtc: false,
55-
};
56-
}
57-
5847
/** Creates an array and fills it with values. */
5948
function range<T>(length: number, valueFunction: (index: number) => T): T[] {
6049
const valuesArray = Array(length);

0 commit comments

Comments
 (0)