From eee7f42b455af91a230d639269c199002fb791fc Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 7 Sep 2022 13:07:24 +0200 Subject: [PATCH] Remove debug output again --- apis/c/node/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/apis/c/node/src/lib.rs b/apis/c/node/src/lib.rs index a9542b7a..a833cbd0 100644 --- a/apis/c/node/src/lib.rs +++ b/apis/c/node/src/lib.rs @@ -20,7 +20,6 @@ struct DoraContext { /// On error, a null pointer is returned. #[no_mangle] pub extern "C" fn init_dora_context_from_env() -> *mut c_void { - println!("init_dora_context_from_env"); let context = || { let node = DoraNode::init_from_env()?; let node = Box::leak(Box::new(node)); @@ -48,9 +47,7 @@ pub extern "C" fn init_dora_context_from_env() -> *mut c_void { /// freeing, the pointer must not be used anymore. #[no_mangle] pub unsafe extern "C" fn free_dora_context(context: *mut c_void) { - println!("free_dora_context"); let context: Box = unsafe { Box::from_raw(context.cast()) }; - println!("free_dora_context: node_id = {}", context.node.id()); // drop all fields except for `node` let DoraContext { node, .. } = *context; // convert the `'static` reference back to a Box, then drop it