cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)

This commit is contained in:
Aaron O'Mullan 2021-05-08 14:37:42 +02:00 committed by GitHub
parent 4ed1428c34
commit d5f39fd121
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 208 additions and 238 deletions

View file

@ -4,7 +4,6 @@ use deno_core::op_async;
use deno_core::op_sync;
use deno_core::Extension;
use deno_core::OpState;
use deno_core::ZeroCopyBuf;
use std::cell::RefCell;
use std::rc::Rc;
@ -61,7 +60,7 @@ impl Resource for SignalStreamResource {
fn op_signal_bind(
state: &mut OpState,
signo: i32,
_zero_copy: Option<ZeroCopyBuf>,
_: (),
) -> Result<ResourceId, AnyError> {
super::check_unstable(state, "Deno.signal");
let resource = SignalStreamResource {
@ -76,7 +75,7 @@ fn op_signal_bind(
async fn op_signal_poll(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
_zero_copy: Option<ZeroCopyBuf>,
_: (),
) -> Result<bool, AnyError> {
super::check_unstable2(&state, "Deno.signal");
@ -98,7 +97,7 @@ async fn op_signal_poll(
pub fn op_signal_unbind(
state: &mut OpState,
rid: ResourceId,
_zero_copy: Option<ZeroCopyBuf>,
_: (),
) -> Result<(), AnyError> {
super::check_unstable(state, "Deno.signal");
state
@ -112,7 +111,7 @@ pub fn op_signal_unbind(
pub fn op_signal_bind(
_state: &mut OpState,
_args: (),
_zero_copy: Option<ZeroCopyBuf>,
_: (),
) -> Result<(), AnyError> {
unimplemented!();
}
@ -121,7 +120,7 @@ pub fn op_signal_bind(
fn op_signal_unbind(
_state: &mut OpState,
_args: (),
_zero_copy: Option<ZeroCopyBuf>,
_: (),
) -> Result<(), AnyError> {
unimplemented!();
}
@ -130,7 +129,7 @@ fn op_signal_unbind(
async fn op_signal_poll(
_state: Rc<RefCell<OpState>>,
_args: (),
_zero_copy: Option<ZeroCopyBuf>,
_: (),
) -> Result<(), AnyError> {
unimplemented!();
}