diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-05 21:23:37 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 11:23:37 +0000 |
commit | 7d95c5c062c7d836bab912e95587bf7fa52326c4 (patch) | |
tree | ef6ea1644324ad82545720af0d7480a316a2a45d /ext/fs/ops.rs | |
parent | c73b4a0877ca134a05262dc15524f54ff471cc3a (diff) |
BREAKING(fs): remove `Deno.funlock[Sync]()` (#25442)
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'ext/fs/ops.rs')
-rw-r--r-- | ext/fs/ops.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/fs/ops.rs b/ext/fs/ops.rs index acf2c216f..0ac4f5016 100644 --- a/ext/fs/ops.rs +++ b/ext/fs/ops.rs @@ -1494,28 +1494,6 @@ pub async fn op_fs_file_stat_async( } #[op2(fast)] -pub fn op_fs_funlock_sync_unstable( - state: &mut OpState, - #[smi] rid: ResourceId, -) -> Result<(), AnyError> { - check_unstable(state, "Deno.funlockSync"); - let file = FileResource::get_file(state, rid)?; - file.unlock_sync()?; - Ok(()) -} - -#[op2(async)] -pub async fn op_fs_funlock_async_unstable( - state: Rc<RefCell<OpState>>, - #[smi] rid: ResourceId, -) -> Result<(), AnyError> { - check_unstable(&state.borrow(), "Deno.funlock"); - let file = FileResource::get_file(&state.borrow(), rid)?; - file.unlock_async().await?; - Ok(()) -} - -#[op2(fast)] pub fn op_fs_flock_sync( state: &mut OpState, #[smi] rid: ResourceId, |