From 1ff4457400eb5c6c40a13743c70c7218a9cb6244 Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Fri, 17 Nov 2023 00:36:51 +0100 Subject: [PATCH] Remove debug print statements --- allocator/src/lib.rs | 9 --------- base/src/metrics_util.rs | 1 - main/src/infrastructure/plugin/app.rs | 1 - main/src/infrastructure/plugin/tracing_util.rs | 7 ------- main/src/infrastructure/ui/app/app_library.rs | 6 ------ 5 files changed, 24 deletions(-) diff --git a/allocator/src/lib.rs b/allocator/src/lib.rs index c8165c7b1..ff6008084 100644 --- a/allocator/src/lib.rs +++ b/allocator/src/lib.rs @@ -103,12 +103,6 @@ struct AsyncDeallocationMachine { integration: I, } -impl Drop for HelgobossAllocator { - fn drop(&mut self) { - println!("Dropping HelgobossAllocator..."); - } -} - #[derive(Debug)] pub struct AsyncDeallocatorCommandReceiver(Receiver); @@ -152,12 +146,10 @@ pub fn start_async_deallocation_thread( deallocator.deallocate(ptr, layout); } AsyncDeallocatorCommand::DeallocateForeign { value, deallocate } => { - println!("Deallocating foreign value async"); unsafe { deallocate(value) }; } } } - println!("Async deallocation finished. Returning receiver."); receiver }) .unwrap() @@ -211,7 +203,6 @@ where self.dealloc_internal( || self.check(None), || unsafe { - println!("Deallocating foreign value sync"); deallocate(value); }, || AsyncDeallocatorCommand::DeallocateForeign { value, deallocate }, diff --git a/base/src/metrics_util.rs b/base/src/metrics_util.rs index 76e9ba2de..6f14d17ea 100644 --- a/base/src/metrics_util.rs +++ b/base/src/metrics_util.rs @@ -132,5 +132,4 @@ fn keep_recording_metrics(receiver: Receiver) { } } } - println!("Recording metrics finished"); } diff --git a/main/src/infrastructure/plugin/app.rs b/main/src/infrastructure/plugin/app.rs index 7cf9c3e28..8cd9b5276 100644 --- a/main/src/infrastructure/plugin/app.rs +++ b/main/src/infrastructure/plugin/app.rs @@ -1673,7 +1673,6 @@ impl App { impl Drop for App { fn drop(&mut self) { - println!("Dropping App..."); self.message_panel.close(); self.party_is_over_subject.next(()); } diff --git a/main/src/infrastructure/plugin/tracing_util.rs b/main/src/infrastructure/plugin/tracing_util.rs index 894262912..2a0b5eccc 100644 --- a/main/src/infrastructure/plugin/tracing_util.rs +++ b/main/src/infrastructure/plugin/tracing_util.rs @@ -75,12 +75,6 @@ struct AsyncWriter { data: Vec, } -impl Drop for AsyncWriter { - fn drop(&mut self) { - println!("Dropping AsyncWriter..."); - } -} - enum AsyncLoggerCommand { Finish, Log(Vec), @@ -106,7 +100,6 @@ fn keep_logging(receiver: Receiver, mut inner: impl Write) { } } } - println!("Async logging finished"); } impl Write for AsyncWriter { diff --git a/main/src/infrastructure/ui/app/app_library.rs b/main/src/infrastructure/ui/app/app_library.rs index 865cadb03..81765656b 100644 --- a/main/src/infrastructure/ui/app/app_library.rs +++ b/main/src/infrastructure/ui/app/app_library.rs @@ -30,12 +30,6 @@ pub struct AppLibrary { _dependencies: Vec, } -impl Drop for AppLibrary { - fn drop(&mut self) { - println!("Dropping AppLibrary..."); - } -} - impl AppLibrary { pub fn load(app_base_dir: PathBuf) -> Result { let (main_library, dependencies) = if cfg!(target_os = "windows") {