summaryrefslogtreecommitdiff
path: root/ext/fs/ops.rs
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-05 21:23:37 +1000
committerGitHub <noreply@github.com>2024-09-05 11:23:37 +0000
commit7d95c5c062c7d836bab912e95587bf7fa52326c4 (patch)
treeef6ea1644324ad82545720af0d7480a316a2a45d /ext/fs/ops.rs
parentc73b4a0877ca134a05262dc15524f54ff471cc3a (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.rs22
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,