From 360089ac741d01fba4beb27ff928afdbec451e06 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 16 Jul 2019 00:03:49 +0200 Subject: [PATCH] remove some debugging --- python/src/deltachat/__init__.py | 2 -- src/context.rs | 5 ----- src/dc_log.rs | 1 - 3 files changed, 8 deletions(-) diff --git a/python/src/deltachat/__init__.py b/python/src/deltachat/__init__.py index 7c7d16963..83652d344 100644 --- a/python/src/deltachat/__init__.py +++ b/python/src/deltachat/__init__.py @@ -20,7 +20,6 @@ def py_dc_callback(ctx, evt, data1, data2): CFFI only allows us to set one global event handler, so this one looks up the correct event handler for the given context. """ - print("py_dc_callback", evt, data1, data2, ctx) try: callback = _DC_CALLBACK_MAP.get(ctx, lambda *a: 0) except AttributeError: @@ -58,7 +57,6 @@ def py_dc_callback(ctx, evt, data1, data2): def set_context_callback(dc_context, func): - print("set_context_callback", dc_context, func) _DC_CALLBACK_MAP[dc_context] = func diff --git a/src/context.rs b/src/context.rs index abd519224..924c4f7d9 100644 --- a/src/context.rs +++ b/src/context.rs @@ -70,7 +70,6 @@ impl Context { } pub fn call_cb(&self, event: Event, data1: uintptr_t, data2: uintptr_t) -> uintptr_t { - println!("call_cb: called"); if let Some(cb) = self.cb { unsafe { cb(self, event, data1, data2) } } else { @@ -181,11 +180,7 @@ pub fn dc_context_new( probe_imap_network: Arc::new(RwLock::new(0)), perform_inbox_jobs_needed: Arc::new(RwLock::new(0)), }; - println!("context created"); - info!(context, 0, "context created"); context - - } unsafe fn cb_receive_imf( diff --git a/src/dc_log.rs b/src/dc_log.rs index 0c608faf1..aa060f438 100644 --- a/src/dc_log.rs +++ b/src/dc_log.rs @@ -95,7 +95,6 @@ macro_rules! info { info!($ctx, $data1, $msg,) }; ($ctx:expr, $data1:expr, $msg:expr, $($args:expr),* $(,)?) => {{ - println!("xxx"); let formatted = format!($msg, $($args),*); let formatted_c = $crate::dc_tools::to_cstring(formatted); $ctx.call_cb($crate::constants::Event::INFO, $data1 as uintptr_t,