From da6cc2ec96d24241a6c8cc7e12e0b5d781be01cc Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 30 Mar 2023 12:27:41 +0200 Subject: [PATCH] Remove unused `HalfEdgeBuilder` --- crates/fj-kernel/src/builder/edge.rs | 31 ---------------------------- crates/fj-kernel/src/builder/mod.rs | 3 +-- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 crates/fj-kernel/src/builder/edge.rs diff --git a/crates/fj-kernel/src/builder/edge.rs b/crates/fj-kernel/src/builder/edge.rs deleted file mode 100644 index 3cc544596..000000000 --- a/crates/fj-kernel/src/builder/edge.rs +++ /dev/null @@ -1,31 +0,0 @@ -use fj_math::Point; - -use crate::{ - geometry::curve::Curve, - objects::{GlobalEdge, HalfEdge, Objects, Vertex}, - operations::Insert, - services::Service, - storage::Handle, -}; - -/// Builder API for [`HalfEdge`] -pub struct HalfEdgeBuilder { - curve: Curve, - boundary: [Point<1>; 2], - start_vertex: Option>, - global_form: Option>, -} - -impl HalfEdgeBuilder { - /// Build the half-edge - pub fn build(self, objects: &mut Service) -> HalfEdge { - HalfEdge::new( - self.curve, - self.boundary, - self.start_vertex - .unwrap_or_else(|| Vertex::new().insert(objects)), - self.global_form - .unwrap_or_else(|| GlobalEdge::new().insert(objects)), - ) - } -} diff --git a/crates/fj-kernel/src/builder/mod.rs b/crates/fj-kernel/src/builder/mod.rs index 50756e908..067bb759d 100644 --- a/crates/fj-kernel/src/builder/mod.rs +++ b/crates/fj-kernel/src/builder/mod.rs @@ -1,7 +1,6 @@ //! API for building objects mod cycle; -mod edge; mod face; -pub use self::{cycle::CycleBuilder, edge::HalfEdgeBuilder, face::FaceBuilder}; +pub use self::{cycle::CycleBuilder, face::FaceBuilder};