mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(core): remove unused private provider (#51222)
Both `DEFAULT_PACKAGE_URL_PROVIDER` and `ERROR_COLLECTOR_TOKEN` are unused across the project PR Close #51222
This commit is contained in:
parent
56566fe3ed
commit
86acbf4cee
1 changed files with 1 additions and 11 deletions
|
|
@ -7,17 +7,7 @@
|
|||
*/
|
||||
|
||||
import {CompilerConfig} from '@angular/compiler';
|
||||
import {Compiler, CompilerFactory, CompilerOptions, InjectionToken, Injector, MissingTranslationStrategy, PACKAGE_ROOT_URL, StaticProvider, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
export const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');
|
||||
|
||||
/**
|
||||
* A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.
|
||||
*/
|
||||
export const DEFAULT_PACKAGE_URL_PROVIDER = {
|
||||
provide: PACKAGE_ROOT_URL,
|
||||
useValue: '/'
|
||||
};
|
||||
import {Compiler, CompilerFactory, CompilerOptions, Injector, MissingTranslationStrategy, StaticProvider, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
export const COMPILER_PROVIDERS =
|
||||
<StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}];
|
||||
|
|
|
|||
Loading…
Reference in a new issue