summaryrefslogtreecommitdiff
path: root/cli/js/buffer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/buffer.ts')
-rw-r--r--cli/js/buffer.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/js/buffer.ts b/cli/js/buffer.ts
index fdacf70a9..dbe7606fd 100644
--- a/cli/js/buffer.ts
+++ b/cli/js/buffer.ts
@@ -6,7 +6,6 @@
import { Reader, Writer, ReaderSync, WriterSync } from "./io.ts";
import { assert } from "./util.ts";
-import { TextDecoder } from "./web/text_encoding.ts";
// MIN_READ is the minimum ArrayBuffer size passed to a read call by
// buffer.ReadFrom. As long as the Buffer has at least MIN_READ bytes beyond
@@ -44,11 +43,6 @@ export class Buffer implements Reader, ReaderSync, Writer, WriterSync {
return this.#buf.subarray(this.#off);
}
- toString(): string {
- const decoder = new TextDecoder();
- return decoder.decode(this.#buf.subarray(this.#off));
- }
-
empty(): boolean {
return this.#buf.byteLength <= this.#off;
}