From b22f1068f3a5a6a056f95292965b3788c015005b Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 3 May 2023 11:15:54 +0200 Subject: [PATCH] Remove unused `CycleBuilder` methods --- crates/fj-kernel/src/builder/cycle.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/crates/fj-kernel/src/builder/cycle.rs b/crates/fj-kernel/src/builder/cycle.rs index c0a848daf..e3f052e70 100644 --- a/crates/fj-kernel/src/builder/cycle.rs +++ b/crates/fj-kernel/src/builder/cycle.rs @@ -16,11 +16,6 @@ pub struct CycleBuilder { } impl CycleBuilder { - /// Create an instance of `CycleBuilder` - pub fn new() -> Self { - Self::default() - } - /// Create a cycle whose half-edges are connected to the provided half-edges /// /// The half-edges of the new circle will be coincident with the provided @@ -46,25 +41,6 @@ impl CycleBuilder { Self { half_edges } } - /// Create a polygon - pub fn polygon(points: Ps, services: &mut Services) -> Self - where - P: Into>, - Ps: IntoIterator, - Ps::IntoIter: Clone + ExactSizeIterator, - { - let half_edges = points - .into_iter() - .map(Into::into) - .circular_tuple_windows() - .map(|(start, end)| { - HalfEdge::line_segment([start, end], None, services) - }) - .collect(); - - Self { half_edges } - } - /// Build the cycle pub fn build(self, services: &mut Services) -> Cycle { let half_edges = self