From 3b34a9187a3c941b48455b1bb07c9ea65d0bc79b Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 4 Nov 2019 15:13:10 +0100 Subject: [PATCH] chore(runtime-core) Remove `dbg!`. --- lib/runtime-core/src/backing.rs | 2 +- lib/runtime-core/src/typed_func.rs | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/runtime-core/src/backing.rs b/lib/runtime-core/src/backing.rs index 0f57b2bbf..c6fffb553 100644 --- a/lib/runtime-core/src/backing.rs +++ b/lib/runtime-core/src/backing.rs @@ -576,7 +576,7 @@ fn import_functions( let import = imports.maybe_with_namespace(namespace, |namespace| namespace.get_export(name)); - dbg!(vmctx); + match import { Some(Export::Function { func, diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 584749ecf..28693359b 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -503,13 +503,9 @@ macro_rules! impl_traits { Trap: TrapEarly, FN: Fn(&mut vm::Ctx, $( $x, )*) -> Trap, { - dbg!(func_ctx.vmctx.as_ptr()); - let vmctx = unsafe { func_ctx.vmctx.as_mut() }; let func_env = func_ctx.func_env; - dbg!(func_env); - let func: &FN = match func_env { Some(func_env) => unsafe { let func: NonNull = func_env.cast(); @@ -551,8 +547,6 @@ macro_rules! impl_traits { NonNull::new(Box::into_raw(Box::new(self))).map(NonNull::cast) }; - dbg!(func_env); - ( NonNull::new(wrap::<$( $x, )* Rets, Trap, Self> as *mut vm::Func).unwrap(), func_env @@ -580,13 +574,9 @@ macro_rules! impl_traits { Trap: TrapEarly, FN: Fn($( $x, )*) -> Trap, { - dbg!(func_ctx.vmctx.as_ptr()); - let vmctx = unsafe { func_ctx.vmctx.as_mut() }; let func_env = func_ctx.func_env; - dbg!(func_env); - let func: &FN = match func_env { Some(func_env) => unsafe { let func: NonNull = func_env.cast(); @@ -628,8 +618,6 @@ macro_rules! impl_traits { NonNull::new(Box::into_raw(Box::new(self))).map(NonNull::cast) }; - dbg!(func_env); - ( NonNull::new(wrap::<$( $x, )* Rets, Trap, Self> as *mut vm::Func).unwrap(), func_env