From d9896d64ce919a46a6e8c6666c3b87cc9ae79b7b Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Thu, 25 Jun 2020 11:40:51 +0100 Subject: refactor: shift copyBytes and tweak deps to reduce dependencies (#6469) --- std/textproto/mod.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'std/textproto') diff --git a/std/textproto/mod.ts b/std/textproto/mod.ts index e5645a9ed..f440ba5d5 100644 --- a/std/textproto/mod.ts +++ b/std/textproto/mod.ts @@ -4,7 +4,6 @@ // license that can be found in the LICENSE file. import { BufReader } from "../io/bufio.ts"; -import { charCode } from "../io/util.ts"; import { concat } from "../bytes/mod.ts"; import { decode } from "../encoding/utf8.ts"; @@ -19,6 +18,10 @@ function str(buf: Uint8Array | null | undefined): string { } } +function charCode(s: string): number { + return s.charCodeAt(0); +} + export class TextProtoReader { constructor(readonly r: BufReader) {} -- cgit v1.2.3