From 32d0ad95ce43f7b1565a783d3446f72a70de3ae2 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 28 Jun 2022 17:19:28 +0200 Subject: [PATCH] Remove unused code --- crates/fj-kernel/src/shape/api.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/crates/fj-kernel/src/shape/api.rs b/crates/fj-kernel/src/shape/api.rs index f85a5f1cd..c9e9df626 100644 --- a/crates/fj-kernel/src/shape/api.rs +++ b/crates/fj-kernel/src/shape/api.rs @@ -1,5 +1,3 @@ -use fj_math::Scalar; - use crate::objects::{Curve, Cycle, Edge, Face, Surface, Vertex}; use super::{ @@ -10,8 +8,6 @@ use super::{ /// The boundary representation of a shape #[derive(Clone, Debug)] pub struct Shape { - distinct_min_distance: Scalar, - stores: Stores, } @@ -19,11 +15,6 @@ impl Shape { /// Construct a new shape pub fn new() -> Self { Self { - // This should really come from `Self::DEFAULT_MIN_DISTANCE`, or a - // similarly named constant. Unfortunately `Scalar::from_f64` can't - // be `const` yet. - distinct_min_distance: Scalar::from_f64(5e-7), // 0.5 µm - stores: Stores { curves: Store::new(), surfaces: Store::new(), @@ -55,17 +46,6 @@ impl Shape { self } - /// Override the minimum distance between distinct objects - /// - /// Used for vertex validation, to determine whether vertices are unique. - pub fn with_distinct_min_distance( - mut self, - distinct_min_distance: impl Into, - ) -> Self { - self.distinct_min_distance = distinct_min_distance.into(); - self - } - /// Insert an object into the shape /// /// Validates the object, and returns an error if it is not valid. See the