removed dead code

This commit is contained in:
randogoth 2024-03-18 13:12:36 +02:00
parent b51ace0c99
commit ee48b1ad3d

View file

@ -14,9 +14,7 @@ struct Edge(usize, usize);
struct TriangleData { struct TriangleData {
index: usize, index: usize,
area: Option<f32>, area: Option<f32>,
terminal_edge: Option<Edge>, terminal_edge: Option<Edge>
edges_with_lengths: Option<Vec<(Edge, f32)>>,
node_connections: Option<HashSet<usize>>,
} }
#[derive(Debug)] #[derive(Debug)]
@ -85,9 +83,7 @@ impl GeometryData {
self.triangles.push(TriangleData { self.triangles.push(TriangleData {
index, index,
area, area,
terminal_edge, terminal_edge
edges_with_lengths: Some(edges_with_lengths_temp), // Moved here, no clone required.
node_connections: None,
}); });
} }
} }