From 8de9acac74f464f9aab0bb56defc00a97f187dc3 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Tue, 2 Jul 2024 11:06:33 +0200 Subject: [PATCH] refactor(common): remove remaining code for NgSwitch equality patch (#56806) This change is the final cleanup after removing NgSwitch's equality patch that was used in G3 to allow == matching for a certain period of time. This code is no longer needed as both the external ecosystem and G3 are using === equality for matching NgSwitch cases. PR Close #56806 --- packages/common/src/directives/ng_switch.ts | 1 - .../common/src/directives/ng_switch_equality.ts | 13 ------------- 2 files changed, 14 deletions(-) delete mode 100644 packages/common/src/directives/ng_switch_equality.ts diff --git a/packages/common/src/directives/ng_switch.ts b/packages/common/src/directives/ng_switch.ts index e84cc8811ce..033da7940e1 100644 --- a/packages/common/src/directives/ng_switch.ts +++ b/packages/common/src/directives/ng_switch.ts @@ -14,7 +14,6 @@ import { Optional, TemplateRef, ViewContainerRef, - ɵformatRuntimeError as formatRuntimeError, ɵRuntimeError as RuntimeError, } from '@angular/core'; diff --git a/packages/common/src/directives/ng_switch_equality.ts b/packages/common/src/directives/ng_switch_equality.ts deleted file mode 100644 index 8670549f896..00000000000 --- a/packages/common/src/directives/ng_switch_equality.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -/** - * A constant indicating a type of comparison that NgSwitch uses to match cases. Extracted to a - * separate file to facilitate G3 patches. - */ -export const NG_SWITCH_USE_STRICT_EQUALS = true;