From aeb8b57a29252dd932239c906c362b1353f63e19 Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Wed, 19 Feb 2025 08:13:19 +0100 Subject: [PATCH] Remove `htmlSafe` and `isHTMLSafe` --- src/index.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/index.ts b/src/index.ts index cd56c29..c18280d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -252,22 +252,3 @@ export function underscore(str: string): string { export function capitalize(str: string): string { return CAPITALIZE_CACHE.get(str); } - -/* - The following are implemented here to give users adding `@ember/string` to - their projects a useful error message. The `ember-source` implementation of - `@ember/string` is clobbered by adding this addon, and so the deprecation of - the import path is not triggered. This error message is intended to help - users discover what they need to change. -*/ -export function htmlSafe(str: string): void { - throw new Error( - 'htmlSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.', - ); -} - -export function isHTMLSafe(str: any | null | undefined): void { - throw new Error( - 'isHTMLSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.', - ); -}