summaryrefslogtreecommitdiff
path: root/std/textproto
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-06-25 11:40:51 +0100
committerGitHub <noreply@github.com>2020-06-25 06:40:51 -0400
commitd9896d64ce919a46a6e8c6666c3b87cc9ae79b7b (patch)
treed91a28318521361d7c559cb5380051df466b7589 /std/textproto
parentc98038a03228d527cd90d9f1fc0118a3fe47dce0 (diff)
refactor: shift copyBytes and tweak deps to reduce dependencies (#6469)
Diffstat (limited to 'std/textproto')
-rw-r--r--std/textproto/mod.ts5
1 files changed, 4 insertions, 1 deletions
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) {}