Skip to content

Commit

Permalink
Remove debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Nov 16, 2023
1 parent 9c4e489 commit 1ff4457
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
9 changes: 0 additions & 9 deletions allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ struct AsyncDeallocationMachine<I> {
integration: I,
}

impl<I, D> Drop for HelgobossAllocator<I, D> {
fn drop(&mut self) {
println!("Dropping HelgobossAllocator...");
}
}

#[derive(Debug)]
pub struct AsyncDeallocatorCommandReceiver(Receiver<AsyncDeallocatorCommand>);

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -211,7 +203,6 @@ where
self.dealloc_internal(
|| self.check(None),
|| unsafe {
println!("Deallocating foreign value sync");
deallocate(value);

Check failure on line 206 in allocator/src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

this public function might dereference a raw pointer but is not marked `unsafe`
},
|| AsyncDeallocatorCommand::DeallocateForeign { value, deallocate },
Expand Down
1 change: 0 additions & 1 deletion base/src/metrics_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,4 @@ fn keep_recording_metrics(receiver: Receiver<MetricsRecorderCommand>) {
}
}
}
println!("Recording metrics finished");
}
1 change: 0 additions & 1 deletion main/src/infrastructure/plugin/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}
Expand Down
7 changes: 0 additions & 7 deletions main/src/infrastructure/plugin/tracing_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ struct AsyncWriter<W> {
data: Vec<u8>,
}

impl<W> Drop for AsyncWriter<W> {
fn drop(&mut self) {
println!("Dropping AsyncWriter...");
}
}

enum AsyncLoggerCommand {
Finish,
Log(Vec<u8>),
Expand All @@ -106,7 +100,6 @@ fn keep_logging(receiver: Receiver<AsyncLoggerCommand>, mut inner: impl Write) {
}
}
}
println!("Async logging finished");
}

impl<W: Write> Write for AsyncWriter<W> {
Expand Down
6 changes: 0 additions & 6 deletions main/src/infrastructure/ui/app/app_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ pub struct AppLibrary {
_dependencies: Vec<Library>,
}

impl Drop for AppLibrary {
fn drop(&mut self) {
println!("Dropping AppLibrary...");
}
}

impl AppLibrary {
pub fn load(app_base_dir: PathBuf) -> Result<Self> {
let (main_library, dependencies) = if cfg!(target_os = "windows") {
Expand Down

0 comments on commit 1ff4457

Please sign in to comment.