From cb81f3b3e571e993c83269ac27cb2851881f1cb4 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 4 Nov 2022 15:39:42 +0100 Subject: [PATCH] Remove redundant code This code is no longer required, as `PartialCycle` makes sure that all surfaces are properly propagated. --- crates/fj-kernel/src/builder/cycle.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/fj-kernel/src/builder/cycle.rs b/crates/fj-kernel/src/builder/cycle.rs index 13c1d264c..86103d627 100644 --- a/crates/fj-kernel/src/builder/cycle.rs +++ b/crates/fj-kernel/src/builder/cycle.rs @@ -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());