diff --git a/crates/kernel/src/blend_smlib.rs b/crates/kernel/src/blend_smlib.rs index b3863f7c2d..ae2a1011c9 100644 --- a/crates/kernel/src/blend_smlib.rs +++ b/crates/kernel/src/blend_smlib.rs @@ -71,7 +71,6 @@ enum Kind { Chamfer, } -#[cfg(feature = "smlib")] mod imp { use std::collections::BTreeSet; @@ -284,33 +283,7 @@ mod imp { } } -#[cfg(not(feature = "smlib"))] -mod imp { - use solidcraft_geom::Vec3; - - use super::Kind; - use crate::blend_variable::RadiusSpline; - use crate::body::Body; - use crate::{KernelError, Result}; - - fn not_built() -> KernelError { - KernelError::Invalid("not supported yet: this build has no SMLib".into()) - } - - pub(super) fn blend(_: &Body, _: &str, _: Kind, _: &[Vec3], _: &[f64]) -> Result { - Err(not_built()) - } - - pub(super) fn variable(_: &Body, _: Vec3, _: Vec3, _: &RadiusSpline) -> Result { - Err(not_built()) - } - - pub(super) fn sides(_: &Body, _: &[Vec3], _: f64, _: crate::ChamferSide, _: bool) -> Result { - Err(not_built()) - } -} - -#[cfg(all(test, feature = "smlib"))] +#[cfg(test)] #[allow(clippy::unwrap_used, clippy::expect_used)] mod tests { use solidcraft_geom::Vec3; diff --git a/crates/kernel/src/surfaces.rs b/crates/kernel/src/surfaces.rs index 78546a74a3..dc3cbd01a3 100644 --- a/crates/kernel/src/surfaces.rs +++ b/crates/kernel/src/surfaces.rs @@ -1194,7 +1194,6 @@ fn open_sections(sections: &[(Plane, Vec)]) -> Result KernelError { - refuse("surfaces: this build has no SMLib (feature `smlib`)") - } - pub(super) fn refuse(what: &str) -> KernelError { - crate::smlib_sweeps::refuse(what) - } - pub(super) fn stitched(_: &Brep, _: f64) -> Result<(Body, Option)> { - Err(not_built()) - } - pub(super) fn thicken(_: &Body, _: f64, _: bool) -> Result { - Err(not_built()) - } - pub(super) fn offset_face(_: &Brep, _: usize, _: f64) -> Result { - Err(not_built()) - } - pub(super) fn extruded(_: &Plane, _: &[Numbered], _: Vec3, _: f64) -> Result { - Err(not_built()) - } - pub(super) fn revolved(_: &Plane, _: &[Numbered], _: Vec3, _: Vec3, _: f64) -> Result { - Err(not_built()) - } - pub(super) fn swept(_: &Plane, _: &[Numbered], _: &[crate::PathSeg], _: bool) -> Result { - Err(not_built()) - } - pub(super) fn cornered( - _: &Plane, - _: &[Numbered], - _: &[crate::PathSeg], - _: &[std::ops::Range], - _: bool, - ) -> Result)>> { - Err(not_built()) - } - pub(super) fn swept_stations(_: &Plane, _: &[Numbered], _: &[crate::PathSeg], _: &crate::SweepControl) -> Result { - Err(not_built()) - } - pub(super) fn lofted(_: &[&solidcraft_geom::bspline::CurveN<4>]) -> Result { - Err(not_built()) - } -} - #[cfg(test)] mod tests { use super::*;