Skip to content

Commit 7131fa1

Browse files
authored
Merge pull request #448 from mkszepp/remove-html-safe-fn
2 parents 95b54c3 + aeb8b57 commit 7131fa1

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/index.ts

-19
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,3 @@ export function underscore(str: string): string {
252252
export function capitalize(str: string): string {
253253
return CAPITALIZE_CACHE.get(str);
254254
}
255-
256-
/*
257-
The following are implemented here to give users adding `@ember/string` to
258-
their projects a useful error message. The `ember-source` implementation of
259-
`@ember/string` is clobbered by adding this addon, and so the deprecation of
260-
the import path is not triggered. This error message is intended to help
261-
users discover what they need to change.
262-
*/
263-
export function htmlSafe(str: string): void {
264-
throw new Error(
265-
'htmlSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.',
266-
);
267-
}
268-
269-
export function isHTMLSafe(str: any | null | undefined): void {
270-
throw new Error(
271-
'isHTMLSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.',
272-
);
273-
}

0 commit comments

Comments
 (0)