summaryrefslogtreecommitdiff
path: root/std/encoding/utf8.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/utf8.ts')
-rw-r--r--std/encoding/utf8.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/std/encoding/utf8.ts b/std/encoding/utf8.ts
deleted file mode 100644
index 6951e37f0..000000000
--- a/std/encoding/utf8.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-
-/** A default TextEncoder instance */
-export const encoder = new TextEncoder();
-
-/** Shorthand for new TextEncoder().encode() */
-export function encode(input?: string): Uint8Array {
- return encoder.encode(input);
-}
-
-/** A default TextDecoder instance */
-export const decoder = new TextDecoder();
-
-/** Shorthand for new TextDecoder().decode() */
-export function decode(input?: Uint8Array): string {
- return decoder.decode(input);
-}