diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-05 20:37:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 20:37:28 +1000 |
commit | c73b4a0877ca134a05262dc15524f54ff471cc3a (patch) | |
tree | 25522be4b43ee2209ee924099f6f26bf3c053dad /ext/fs | |
parent | b01578ae1fc1da65ac38daec31a23c9ef652aa74 (diff) |
BREAKING(fs): remove `Deno.seek[Sync]()` (#25449)
Towards #22079
Diffstat (limited to 'ext/fs')
-rw-r--r-- | ext/fs/30_fs.js | 22 |
1 files changed, 2 insertions, 20 deletions
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, |