summaryrefslogtreecommitdiff
path: root/runtime/js/13_buffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/13_buffer.js')
-rw-r--r--runtime/js/13_buffer.js26
1 files changed, 1 insertions, 25 deletions
diff --git a/runtime/js/13_buffer.js b/runtime/js/13_buffer.js
index ae57fcb16..2dbe5bbf6 100644
--- a/runtime/js/13_buffer.js
+++ b/runtime/js/13_buffer.js
@@ -256,28 +256,4 @@ function readAllSync(r) {
return buf.bytes();
}
-async function writeAll(w, arr) {
- internals.warnOnDeprecatedApi(
- "Deno.writeAll()",
- new Error().stack,
- "Use `writeAll()` from `https://jsr.io/@std/io/doc/write-all/~` instead.",
- );
- let nwritten = 0;
- while (nwritten < arr.length) {
- nwritten += await w.write(TypedArrayPrototypeSubarray(arr, nwritten));
- }
-}
-
-function writeAllSync(w, arr) {
- internals.warnOnDeprecatedApi(
- "Deno.writeAllSync()",
- new Error().stack,
- "Use `writeAllSync()` from `https://jsr.io/@std/io/doc/write-all/~` instead.",
- );
- let nwritten = 0;
- while (nwritten < arr.length) {
- nwritten += w.writeSync(TypedArrayPrototypeSubarray(arr, nwritten));
- }
-}
-
-export { Buffer, readAll, readAllSync, writeAll, writeAllSync };
+export { Buffer, readAll, readAllSync };