From dfa772d6864bd1cd5b0ec9a45fe15729d8e54b86 Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Mon, 31 Jul 2023 22:07:17 +0200 Subject: [PATCH] refactor(core): remove unused private provider (#51222) Both `DEFAULT_PACKAGE_URL_PROVIDER` and `ERROR_COLLECTOR_TOKEN` are unused across the project PR Close #51222 --- .../platform-browser-dynamic/src/compiler_factory.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/platform-browser-dynamic/src/compiler_factory.ts b/packages/platform-browser-dynamic/src/compiler_factory.ts index 4041e90a32893..ea79d8999fd2f 100644 --- a/packages/platform-browser-dynamic/src/compiler_factory.ts +++ b/packages/platform-browser-dynamic/src/compiler_factory.ts @@ -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 = [{provide: Compiler, useFactory: () => new Compiler()}];