[go: nahoru, domu]

Skip to content

Commit

Permalink
refactor(common): remove deprecated isPlatformWorkerApp and `isPlat…
Browse files Browse the repository at this point in the history
…formWorkerUi` API (#55302)

BREAKING CHANGE: The deprecated `isPlatformWorkerUi` and `isPlatformWorkerApp` have been removed without replacement, as they serve no purpose since the removal of the WebWorker platform.

PR Close #55302
  • Loading branch information
alan-agius4 authored and pkozlowski-opensource committed Apr 17, 2024
1 parent 5f85972 commit 3b0de30
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
6 changes: 0 additions & 6 deletions goldens/public-api/common/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,6 @@ export function isPlatformBrowser(platformId: Object): boolean;
// @public
export function isPlatformServer(platformId: Object): boolean;

// @public @deprecated
export function isPlatformWorkerApp(platformId: Object): boolean;

// @public @deprecated
export function isPlatformWorkerUi(platformId: Object): boolean;

// @public
export class JsonPipe implements PipeTransform {
// (undocumented)
Expand Down
4 changes: 0 additions & 4 deletions packages/common/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,8 @@ export {
export {
PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID,
PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID,
PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID,
PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID,
isPlatformBrowser,
isPlatformServer,
isPlatformWorkerApp,
isPlatformWorkerUi,
} from './platform_id';
export {VERSION} from './version';
export {ViewportScroller, NullViewportScroller as ɵNullViewportScroller} from './viewport_scroller';
Expand Down
22 changes: 0 additions & 22 deletions packages/common/src/platform_id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

export const PLATFORM_BROWSER_ID = 'browser';
export const PLATFORM_SERVER_ID = 'server';
export const PLATFORM_WORKER_APP_ID = 'browserWorkerApp';
export const PLATFORM_WORKER_UI_ID = 'browserWorkerUi';

/**
* Returns whether a platform id represents a browser platform.
Expand All @@ -26,23 +24,3 @@ export function isPlatformBrowser(platformId: Object): boolean {
export function isPlatformServer(platformId: Object): boolean {
return platformId === PLATFORM_SERVER_ID;
}

/**
* Returns whether a platform id represents a web worker app platform.
* @publicApi
* @deprecated This function serves no purpose since the removal of the Webworker platform. It will
* always return `false`.
*/
export function isPlatformWorkerApp(platformId: Object): boolean {
return platformId === PLATFORM_WORKER_APP_ID;
}

/**
* Returns whether a platform id represents a web worker UI platform.
* @publicApi
* @deprecated This function serves no purpose since the removal of the Webworker platform. It will
* always return `false`.
*/
export function isPlatformWorkerUi(platformId: Object): boolean {
return platformId === PLATFORM_WORKER_UI_ID;
}

0 comments on commit 3b0de30

Please sign in to comment.