Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 2, 2023
1 parent 6b0eba0 commit fe89954
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/fj-kernel/src/partial/objects/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,8 @@ impl Default for PartialHalfEdge {
let start_vertex = Partial::default();
let end_vertex = Partial::default();

let global_vertices = [&start_vertex, &end_vertex]
.map(|vertex: &Partial<GlobalVertex>| vertex.clone());

let global_form = Partial::from_partial(PartialGlobalEdge {
vertices: global_vertices,
vertices: [start_vertex.clone(), end_vertex],
});

Self {
Expand Down

0 comments on commit fe89954

Please sign in to comment.