From 6c4f02f1045aac32c9a1e0847389cd0a55f0c384 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 28 Feb 2023 18:27:34 +0100 Subject: [PATCH] Remove unused `HalfEdgeBuilder` method --- crates/fj-kernel/src/builder/edge.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/crates/fj-kernel/src/builder/edge.rs b/crates/fj-kernel/src/builder/edge.rs index a1692602e..a1f2e0582 100644 --- a/crates/fj-kernel/src/builder/edge.rs +++ b/crates/fj-kernel/src/builder/edge.rs @@ -30,13 +30,6 @@ pub trait HalfEdgeBuilder { next_half_edge: Partial, ); - /// Update partial half-edge to be a line segment, from the given points - fn update_as_line_segment_from_points( - &mut self, - points: [impl Into>; 2], - next_vertex: Partial, - ) -> Curve; - /// Update partial half-edge to be a line segment fn update_as_line_segment( &mut self, @@ -143,21 +136,6 @@ impl HalfEdgeBuilder for PartialHalfEdge { self.infer_global_form(next_half_edge.read().start_vertex.clone()); } - fn update_as_line_segment_from_points( - &mut self, - points: [impl Into>; 2], - mut next_vertex: Partial, - ) -> Curve { - for (vertex, point) in - [&mut self.start_vertex, &mut next_vertex].zip_ext(points) - { - let mut surface_form = vertex.write(); - surface_form.position = Some(point.into()); - } - - self.update_as_line_segment(next_vertex) - } - fn update_as_line_segment( &mut self, next_vertex: Partial,