Skip to content

Commit

Permalink
refactor(platform-browser-dynamic): unused RESOURCE_CACHE_PROVIDER
Browse files Browse the repository at this point in the history
…API has been removed (#54875)

BREAKING CHANGE: No longer used `RESOURCE_CACHE_PROVIDER` APIs have been removed.

PR Close #54875
  • Loading branch information
alan-agius4 authored and alxhub committed Mar 18, 2024
1 parent 55c3932 commit eb20c1a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 131 deletions.
4 changes: 0 additions & 4 deletions goldens/public-api/platform-browser-dynamic/index.md
Expand Up @@ -8,7 +8,6 @@ import { Compiler } from '@angular/core';
import { CompilerFactory } from '@angular/core';
import { CompilerOptions } from '@angular/core';
import { PlatformRef } from '@angular/core';
import { Provider } from '@angular/core';
import { StaticProvider } from '@angular/core';
import { Version } from '@angular/core';

Expand All @@ -21,9 +20,6 @@ export class JitCompilerFactory implements CompilerFactory {
// @public (undocumented)
export const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;

// @public @deprecated (undocumented)
export const RESOURCE_CACHE_PROVIDER: Provider[];

// @public (undocumented)
export const VERSION: Version;

Expand Down
Expand Up @@ -6,27 +6,15 @@
* found in the LICENSE file at https://angular.io/license
*/

import {ResourceLoader} from '@angular/compiler';
import {createPlatformFactory, Provider} from '@angular/core';
import {createPlatformFactory} from '@angular/core';

import {platformCoreDynamic} from './platform_core_dynamic';
import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';
import {CachedResourceLoader} from './resource_loader/resource_loader_cache';

export * from './private_export';
export {VERSION} from './version';
export {JitCompilerFactory} from './compiler_factory';

/**
* @publicApi
*
* @deprecated This was previously necessary in some cases to test AOT-compiled components with View
* Engine, but is no longer since Ivy.
*/
export const RESOURCE_CACHE_PROVIDER: Provider[] =
[{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];

/**
* @publicApi
*/
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit eb20c1a

Please sign in to comment.