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:
Matthieu Riegler 2023-07-31 22:07:17 +02:00 committed by Dylan Hunn
parent 56566fe3ed
commit 86acbf4cee

View file

@ -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()}];