From 5664f9e64673601a5481012569bf602c46613d0f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 28 Jul 2021 09:39:10 -0500 Subject: [PATCH] Remove printlns. --- src/pathfinding.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/pathfinding.rs b/src/pathfinding.rs index e4ba62a..b5b2631 100644 --- a/src/pathfinding.rs +++ b/src/pathfinding.rs @@ -188,7 +188,6 @@ fn calculate_path( ) { for (entity, destination, coordinates, shape) in query.iter() { if coordinates.i32() == **destination { - println!("Removing path1: {:?}", entity); commands .entity(entity) .remove::() @@ -204,7 +203,6 @@ fn calculate_path( let map_clone = map.clone(); let shape_clone = shape.clone(); let collider_set: StaticColliderComponentsSet = (&collider_query, &obstructions).into(); - println!("Spawning pathfinding task for {:?}", entity); let task = pool.spawn(async move { find_path_for_shape( entity, @@ -221,22 +219,18 @@ fn calculate_path( .insert(Calculating(task)) .remove::() .remove::(); - println!("Inserted"); } } } fn poll_tasks(mut commands: Commands, mut query: Query<(Entity, &mut Calculating)>) { for (entity, mut calculating) in query.iter_mut() { - println!("Got a calculating task for {:?}", entity); if let Some(result) = future::block_on(future::poll_once(&mut **calculating)) { - println!("Got a result, setting and returning"); if let Some(path) = result { commands.entity(entity).insert(path); } else { commands.entity(entity).insert(NoPath); } - println!("Removing calculation task"); commands.entity(entity).remove::(); } } @@ -286,7 +280,6 @@ fn negotiate_path( continue; } } else { - println!("Removing path2"); commands.entity(entity).remove::(); velocity.linvel = Vec2::ZERO.into(); } @@ -308,7 +301,6 @@ fn negotiate_path( direction *= **speed; velocity.linvel = direction.into(); } else { - println!("Removing path3"); velocity.linvel = Vec2::ZERO.into(); commands .entity(entity) @@ -323,7 +315,6 @@ fn remove_calculating( query: Query, With)>, ) { for entity in query.iter() { - println!("Probably shouldn't happen"); commands.entity(entity).remove::(); } }