From ad2ec35bfb720641007dfcd1f55a8cc898930287 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 11 Aug 2025 15:23:23 -0500 Subject: [PATCH] chore: remove unused tracing debug invocations --- src/entity/ghost.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/entity/ghost.rs b/src/entity/ghost.rs index 868aaad..24b551a 100644 --- a/src/entity/ghost.rs +++ b/src/entity/ghost.rs @@ -7,7 +7,6 @@ use glam::Vec2; use rand::prelude::*; use smallvec::SmallVec; -use tracing::debug; use crate::constants::BOARD_PIXEL_OFFSET; use crate::entity::direction::Direction; @@ -141,15 +140,6 @@ impl Ghost { } } } - - debug!( - "Ghost {} at node {}: available directions: {:?}, current direction: {:?}", - self.ghost_type.as_str(), - current_node, - available_directions, - self.traverser.direction - ); - // Choose a random direction (avoid reversing unless necessary) if !available_directions.is_empty() { let mut rng = SmallRng::from_os_rng(); @@ -161,16 +151,8 @@ impl Ghost { .filter(|&&dir| dir != opposite || available_directions.len() <= 2) .collect(); - debug!( - "Ghost {}: filtered directions: {:?}, opposite: {:?}", - self.ghost_type.as_str(), - filtered_directions, - opposite - ); - if let Some(&random_direction) = filtered_directions.choose(&mut rng) { self.traverser.set_next_direction(*random_direction); - debug!("Ghost {} chose direction: {:?}", self.ghost_type.as_str(), random_direction); } } }