Skip to content

Commit

Permalink
refactor(core): remove unused private provider (#51222)
Browse files Browse the repository at this point in the history
Both `DEFAULT_PACKAGE_URL_PROVIDER` and `ERROR_COLLECTOR_TOKEN` are unused across the project

PR Close #51222
  • Loading branch information
JeanMeche authored and dylhunn committed Aug 7, 2023
1 parent c7c0723 commit dfa772d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/platform-browser-dynamic/src/compiler_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}];
Expand Down

0 comments on commit dfa772d

Please sign in to comment.