From 909ef955b9b74ae33d6ea6541db16f78bb4cc72c Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Fri, 31 May 2024 23:57:40 +0200 Subject: [PATCH] fix(xml): cleanup comments (see #49) --- xml/parse.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/xml/parse.ts b/xml/parse.ts index f6c0e94f..c145742b 100644 --- a/xml/parse.ts +++ b/xml/parse.ts @@ -443,23 +443,3 @@ function revive(node: xml_node | xml_text, key: string, options: options) { /** Synchronous reader. */ type ReaderSync = { readSync(buffer: Uint8Array): Nullable } - -//TODO(@lowlighter): implement async parsing -/** Asynchronous reader. */ -//type Reader = { read(buffer: Uint8Array): Promise> } - -/* -class MockReader implements Reader { - constructor(string: string) { - this.#data = new TextEncoder().encode(string) - } - readonly #data - #cursor = 0 - async read(buffer: Uint8Array) { - const bytes = this.#data.slice(this.#cursor, this.#cursor + buffer.length) - buffer.set(bytes) - this.#cursor = Math.min(this.#cursor + bytes.length, this.#data.length) - return bytes.length || null - } -} -*/