From 9bf10aa1e08ba071092b11fd60670e4a0fcb5491 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 3 Sep 2024 18:39:37 +1000 Subject: chore(fs): remove `Deno.flock[Sync]()` (#25350) Towards #22079 --- ext/fs/ops.rs | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'ext/fs/ops.rs') diff --git a/ext/fs/ops.rs b/ext/fs/ops.rs index e8a074be5..7d28b56b0 100644 --- a/ext/fs/ops.rs +++ b/ext/fs/ops.rs @@ -1493,30 +1493,6 @@ pub async fn op_fs_file_stat_async( Ok(stat.into()) } -#[op2(fast)] -pub fn op_fs_flock_sync_unstable( - state: &mut OpState, - #[smi] rid: ResourceId, - exclusive: bool, -) -> Result<(), AnyError> { - check_unstable(state, "Deno.flockSync"); - let file = FileResource::get_file(state, rid)?; - file.lock_sync(exclusive)?; - Ok(()) -} - -#[op2(async)] -pub async fn op_fs_flock_async_unstable( - state: Rc>, - #[smi] rid: ResourceId, - exclusive: bool, -) -> Result<(), AnyError> { - check_unstable(&state.borrow(), "Deno.flock"); - let file = FileResource::get_file(&state.borrow(), rid)?; - file.lock_async(exclusive).await?; - Ok(()) -} - #[op2(fast)] pub fn op_fs_funlock_sync_unstable( state: &mut OpState, -- cgit v1.2.3