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