diff options
| author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2023-02-22 21:09:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-22 19:09:59 +0000 |
| commit | 0f9daaeacb402a7199e58b14ad01ec0091ac2c8d (patch) | |
| tree | 0c5269bb8b7b4905e4cb1e4ade61149767479abf /ext/ffi/callback.rs | |
| parent | 9b8992d4b4acb3a54ca7d988d181a266841013d9 (diff) | |
fix(ext/ffi): Fix re-ref'ing UnsafeCallback (#17704)
Diffstat (limited to 'ext/ffi/callback.rs')
| -rw-r--r-- | ext/ffi/callback.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/ffi/callback.rs b/ext/ffi/callback.rs index d608c5432..ae2780391 100644 --- a/ext/ffi/callback.rs +++ b/ext/ffi/callback.rs @@ -532,19 +532,6 @@ pub fn op_ffi_unsafe_callback_ref( }) } -#[op(fast)] -pub fn op_ffi_unsafe_callback_unref( - state: &mut deno_core::OpState, - rid: u32, -) -> Result<(), AnyError> { - state - .resource_table - .get::<UnsafeCallbackResource>(rid)? - .cancel - .cancel(); - Ok(()) -} - #[derive(Deserialize)] pub struct RegisterCallbackArgs { parameters: Vec<NativeType>, |
