Skip to content

Commit 124184a

Browse files
committed
refactor(cdk/bidi): remove unnecessary factory
Inlines a factory constant that doesn't need to be separate from its token definition.
1 parent 6cee2b9 commit 124184a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/cdk/bidi/dir-document-token.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,5 @@ import {inject, InjectionToken, DOCUMENT} from '@angular/core';
2525
*/
2626
export const DIR_DOCUMENT = new InjectionToken<Document>('cdk-dir-doc', {
2727
providedIn: 'root',
28-
factory: DIR_DOCUMENT_FACTORY,
28+
factory: () => inject(DOCUMENT),
2929
});
30-
31-
/**
32-
* @docs-private
33-
* @deprecated No longer used, will be removed.
34-
* @breaking-change 21.0.0
35-
*/
36-
export function DIR_DOCUMENT_FACTORY(): Document {
37-
return inject(DOCUMENT);
38-
}

0 commit comments

Comments
 (0)