Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
This code is no longer required, as `PartialCycle` makes sure that all
surfaces are properly propagated.
  • Loading branch information
hannobraun committed Nov 4, 2022
1 parent 142bbf8 commit cb81f3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/fj-kernel/src/builder/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ impl CycleBuilder for PartialCycle {
.position()
.expect("Need surface position to extend cycle");

let from = vertex_prev.update_partial(|partial| {
partial.with_surface(Some(surface.clone()))
});
let to = vertex_next.update_partial(|partial| {
partial.with_surface(Some(surface.clone()))
});
let from = vertex_prev;
let to = vertex_next;

previous = Some(to.clone());

Expand Down

0 comments on commit cb81f3b

Please sign in to comment.