From c73b4a0877ca134a05262dc15524f54ff471cc3a Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 5 Sep 2024 20:37:28 +1000 Subject: BREAKING(fs): remove `Deno.seek[Sync]()` (#25449) Towards #22079 --- ext/fs/30_fs.js | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'ext/fs') diff --git a/ext/fs/30_fs.js b/ext/fs/30_fs.js index f979badb9..3509a61d7 100644 --- a/ext/fs/30_fs.js +++ b/ext/fs/30_fs.js @@ -543,22 +543,6 @@ async function funlock(rid) { await op_fs_funlock_async_unstable(rid); } -function seekSync( - rid, - offset, - whence, -) { - return op_fs_seek_sync(rid, offset, whence); -} - -function seek( - rid, - offset, - whence, -) { - return op_fs_seek_async(rid, offset, whence); -} - function openSync( path, options, @@ -663,11 +647,11 @@ class FsFile { } seek(offset, whence) { - return seek(this.#rid, offset, whence); + return op_fs_seek_async(this.#rid, offset, whence); } seekSync(offset, whence) { - return seekSync(this.#rid, offset, whence); + return op_fs_seek_sync(this.#rid, offset, whence); } async stat() { @@ -979,8 +963,6 @@ export { removeSync, rename, renameSync, - seek, - seekSync, stat, statSync, symlink, -- cgit v1.2.3