mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
cleanup(core): remove void_op_a?sync (#13953)
In favour of `op_void_sync` & `op_void_async`
This commit is contained in:
parent
07d8431f10
commit
60466de5d5
3 changed files with 3 additions and 16 deletions
|
@ -9,7 +9,7 @@ use deno_core::RuntimeOptions;
|
|||
fn main() {
|
||||
let my_ext = Extension::builder()
|
||||
.middleware(|name, opfn| match name {
|
||||
"op_print" => deno_core::void_op_sync::v8_cb(),
|
||||
"op_print" => deno_core::op_void_sync::v8_cb(),
|
||||
_ => opfn,
|
||||
})
|
||||
.build();
|
||||
|
|
|
@ -80,8 +80,8 @@ pub use crate::ops::PromiseId;
|
|||
pub use crate::ops_builtin::op_close;
|
||||
pub use crate::ops_builtin::op_print;
|
||||
pub use crate::ops_builtin::op_resources;
|
||||
pub use crate::ops_builtin::void_op_async;
|
||||
pub use crate::ops_builtin::void_op_sync;
|
||||
pub use crate::ops_builtin::op_void_async;
|
||||
pub use crate::ops_builtin::op_void_sync;
|
||||
pub use crate::ops_metrics::OpsTracker;
|
||||
pub use crate::resources::AsyncResult;
|
||||
pub use crate::resources::Resource;
|
||||
|
|
|
@ -39,19 +39,6 @@ pub(crate) fn init_builtins() -> Extension {
|
|||
.build()
|
||||
}
|
||||
|
||||
#[op]
|
||||
pub fn void_op_sync(_: &mut OpState) -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn void_op_async(
|
||||
_state: Rc<RefCell<OpState>>,
|
||||
_: (),
|
||||
_: (),
|
||||
) -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Return map of resources with id as key
|
||||
/// and string representation as value.
|
||||
#[op]
|
||||
|
|
Loading…
Reference in a new issue