Skip to content

Commit

Permalink
Remove forgotten debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikatemu committed Jun 14, 2024
1 parent d8b62ed commit 4a26212
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pathfinder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,13 @@ impl RePathfinder {
}
points.push(end_coords);

// Debug intermediate points
println!("Intermediate points: {:?}", points);

// Create tasks for each segment
let segments: Vec<_> = points.windows(2).collect();
let paths: Vec<_> = segments.into_par_iter()
.map(|segment| {
println!("Segment: {:?}", segment);
let start_node_id = self.graph.nearest_node(segment[0].0, segment[0].1, segment[0].2)?;
let end_node_id = self.graph.nearest_node(segment[1].0, segment[1].1, segment[1].2)?;
let path = self.graph.a_star(start_node_id, end_node_id, &self.cache);
println!("Path for segment: {:?}", path);
path
})
.collect::<Vec<_>>();
Expand Down

0 comments on commit 4a26212

Please sign in to comment.