From 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 14 Mar 2022 23:38:53 +0100 Subject: feat(ops): custom arity (#13949) Also cleanup & drop ignored wildcard op-args --- ext/ffi/lib.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'ext/ffi/lib.rs') diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index b4d8712f4..07297071a 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -465,7 +465,6 @@ pub(crate) fn format_error(e: dlopen::Error, path: String) -> String { fn op_ffi_load( state: &mut deno_core::OpState, args: FfiLoadArgs, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -652,7 +651,6 @@ fn ffi_call(args: FfiCallArgs, symbol: &Symbol) -> Result { fn op_ffi_call_ptr( _state: &mut deno_core::OpState, args: FfiCallPtrArgs, - _: (), ) -> Result { let symbol = args.get_symbol(); ffi_call(args.into(), &symbol) @@ -662,7 +660,6 @@ fn op_ffi_call_ptr( async fn op_ffi_call_ptr_nonblocking( _state: Rc>, args: FfiCallPtrArgs, - _: (), ) -> Result { let symbol = args.get_symbol(); tokio::task::spawn_blocking(move || ffi_call(args.into(), &symbol)) @@ -682,7 +679,6 @@ struct FfiGetArgs { fn op_ffi_get_static( state: &mut deno_core::OpState, args: FfiGetArgs, - _: (), ) -> Result { let resource = state .resource_table @@ -740,7 +736,6 @@ fn op_ffi_get_static( fn op_ffi_call( state: &mut deno_core::OpState, args: FfiCallArgs, - _: (), ) -> Result { let resource = state .resource_table @@ -759,7 +754,6 @@ fn op_ffi_call( async fn op_ffi_call_nonblocking( state: Rc>, args: FfiCallArgs, - _: (), ) -> Result { let resource = state .borrow() @@ -780,7 +774,6 @@ async fn op_ffi_call_nonblocking( fn op_ffi_ptr_of( state: &mut deno_core::OpState, buf: ZeroCopyBuf, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -795,7 +788,6 @@ where fn op_ffi_buf_copy_into( state: &mut deno_core::OpState, (src, mut dst, len): (U32x2, ZeroCopyBuf, usize), - _: (), ) -> Result<(), AnyError> where FP: FfiPermissions + 'static, @@ -818,7 +810,6 @@ where fn op_ffi_cstr_read( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -834,7 +825,6 @@ where fn op_ffi_read_u8( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -849,7 +839,6 @@ where fn op_ffi_read_i8( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -864,7 +853,6 @@ where fn op_ffi_read_u16( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -879,7 +867,6 @@ where fn op_ffi_read_i16( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -894,7 +881,6 @@ where fn op_ffi_read_u32( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -909,7 +895,6 @@ where fn op_ffi_read_i32( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -924,7 +909,6 @@ where fn op_ffi_read_u64( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -941,7 +925,6 @@ where fn op_ffi_read_f32( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, @@ -956,7 +939,6 @@ where fn op_ffi_read_f64( state: &mut deno_core::OpState, ptr: U32x2, - _: (), ) -> Result where FP: FfiPermissions + 'static, -- cgit v1.2.3