diff options
Diffstat (limited to 'std/io/util.ts')
-rw-r--r-- | std/io/util.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/std/io/util.ts b/std/io/util.ts index 237747a89..47e48a981 100644 --- a/std/io/util.ts +++ b/std/io/util.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -const { Buffer, mkdir, open } = Deno; +const { mkdir, open } = Deno; type File = Deno.File; type Reader = Deno.Reader; import * as path from "../path/mod.ts"; -import { encode } from "../encoding/utf8.ts"; /** * Copy bytes from one Uint8Array to another. Bytes from `src` which don't fit @@ -28,10 +27,6 @@ export function charCode(s: string): number { return s.charCodeAt(0); } -export function stringsReader(s: string): Reader { - return new Buffer(encode(s).buffer); -} - /** Create or open a temporal file at specified directory with prefix and * postfix * */ |