mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08: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:
committed by
Dylan Hunn
parent
56566fe3ed
commit
86acbf4cee
@@ -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()}];
|
||||
|
||||
Reference in New Issue
Block a user