Remove redundant code

This code is no longer required, as `PartialCycle` makes sure that all
surfaces are properly propagated.
This commit is contained in:
Hanno Braun 2022-11-04 15:39:42 +01:00
parent 142bbf8c77
commit cb81f3b3e5
1 changed files with 2 additions and 6 deletions

View File

@ -62,12 +62,8 @@ impl CycleBuilder for PartialCycle {
.position() .position()
.expect("Need surface position to extend cycle"); .expect("Need surface position to extend cycle");
let from = vertex_prev.update_partial(|partial| { let from = vertex_prev;
partial.with_surface(Some(surface.clone())) let to = vertex_next;
});
let to = vertex_next.update_partial(|partial| {
partial.with_surface(Some(surface.clone()))
});
previous = Some(to.clone()); previous = Some(to.clone());