mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-17 04:12:39 -06:00
refactor: optimize debug system, remove redundant code & tests
This commit is contained in:
@@ -218,11 +218,6 @@ impl Graph {
|
||||
self.nodes.get(id)
|
||||
}
|
||||
|
||||
/// Returns the total number of nodes in the graph.
|
||||
pub fn node_count(&self) -> usize {
|
||||
self.nodes.len()
|
||||
}
|
||||
|
||||
/// Returns an iterator over all nodes in the graph.
|
||||
pub fn nodes(&self) -> impl Iterator<Item = &Node> {
|
||||
self.nodes.iter()
|
||||
|
||||
Reference in New Issue
Block a user