From d923ec8694409df87e8581eeaa3be12ce3246c99 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 23 Nov 2023 16:19:37 +0100 Subject: [PATCH] Remove unused code --- crates/fj-core/src/operations/sweep/mod.rs | 29 ---------------------- 1 file changed, 29 deletions(-) diff --git a/crates/fj-core/src/operations/sweep/mod.rs b/crates/fj-core/src/operations/sweep/mod.rs index f9fa23bc1..bb9241ecc 100644 --- a/crates/fj-core/src/operations/sweep/mod.rs +++ b/crates/fj-core/src/operations/sweep/mod.rs @@ -13,41 +13,12 @@ pub use self::{ use std::collections::BTreeMap; -use fj_math::Vector; - use crate::{ objects::{Curve, Vertex}, - services::Services, storage::{Handle, ObjectId}, }; -/// Sweep an object along a path to create another object -pub trait Sweep: Sized { - /// The object that is created by sweeping the implementing object - type Swept; - - /// Sweep the object along the given path - fn sweep( - self, - path: impl Into>, - services: &mut Services, - ) -> Self::Swept { - let mut cache = SweepCache::default(); - self.sweep_with_cache(path, &mut cache, services) - } - - /// Sweep the object along the given path, using the provided cache - fn sweep_with_cache( - self, - path: impl Into>, - cache: &mut SweepCache, - services: &mut Services, - ) -> Self::Swept; -} - /// A cache used for sweeping -/// -/// See [`Sweep`]. #[derive(Default)] pub struct SweepCache { /// Cache for curves