diff --git a/crates/fj-kernel/src/builder/curve.rs b/crates/fj-kernel/src/builder/curve.rs index 1f6dab6b3..f9e5f3c50 100644 --- a/crates/fj-kernel/src/builder/curve.rs +++ b/crates/fj-kernel/src/builder/curve.rs @@ -4,14 +4,6 @@ use crate::{geometry::path::SurfacePath, partial::PartialCurve}; /// Builder API for [`PartialCurve`] pub trait CurveBuilder { - /// Update partial curve to be a line, from the provided points - /// - /// Returns the updated path. - fn update_as_line_from_points( - &mut self, - points: [impl Into>; 2], - ) -> SurfacePath; - /// Update partial curve to be a line, from provided points and line coords /// /// Returns the updated path. @@ -22,15 +14,6 @@ pub trait CurveBuilder { } impl CurveBuilder for PartialCurve { - fn update_as_line_from_points( - &mut self, - points: [impl Into>; 2], - ) -> SurfacePath { - let (path, _) = SurfacePath::line_from_points(points); - self.path = Some(path.into()); - path - } - fn update_as_line_from_points_with_line_coords( &mut self, points: [(impl Into>, impl Into>); 2], diff --git a/crates/fj-kernel/src/builder/edge.rs b/crates/fj-kernel/src/builder/edge.rs index d28e5d48e..92f8d66a3 100644 --- a/crates/fj-kernel/src/builder/edge.rs +++ b/crates/fj-kernel/src/builder/edge.rs @@ -181,10 +181,8 @@ impl HalfEdgeBuilder for PartialHalfEdge { boundary.zip_ext(points_surface), ) } else { - let path = self - .curve - .write() - .update_as_line_from_points(points_surface); + let (path, _) = SurfacePath::line_from_points(points_surface); + self.curve.write().path = Some(path.into()); for (vertex, position) in self.vertices.each_mut_ext().zip_ext([0., 1.])