Remove unused code

This commit is contained in:
Hanno Braun 2024-03-22 14:24:58 +01:00
parent cba2af3904
commit f98df7cfed
3 changed files with 4 additions and 13 deletions

View File

@ -25,7 +25,3 @@ impl Validate for Face {
); );
} }
} }
/// [`Face`] validation error
#[derive(Clone, Debug, thiserror::Error)]
pub enum FaceValidationError {}

View File

@ -79,9 +79,8 @@ use crate::{
}; };
pub use self::{ pub use self::{
edge::EdgeValidationError, face::FaceValidationError, edge::EdgeValidationError, shell::ShellValidationError,
shell::ShellValidationError, sketch::SketchValidationError, sketch::SketchValidationError, solid::SolidValidationError,
solid::SolidValidationError,
}; };
/// Assert that some object has a validation error which matches a specific /// Assert that some object has a validation error which matches a specific

View File

@ -1,8 +1,8 @@
use std::{convert::Infallible, fmt}; use std::{convert::Infallible, fmt};
use crate::validate::{ use crate::validate::{
EdgeValidationError, FaceValidationError, ShellValidationError, EdgeValidationError, ShellValidationError, SketchValidationError,
SketchValidationError, SolidValidationError, SolidValidationError,
}; };
use super::checks::{ use super::checks::{
@ -29,10 +29,6 @@ pub enum ValidationError {
#[error("`Edge` validation error")] #[error("`Edge` validation error")]
Edge(#[from] EdgeValidationError), Edge(#[from] EdgeValidationError),
/// `Face` validation error
#[error("`Face` validation error")]
Face(#[from] FaceValidationError),
/// `Shell` validation error /// `Shell` validation error
#[error("`Shell` validation error")] #[error("`Shell` validation error")]
Shell(#[from] ShellValidationError), Shell(#[from] ShellValidationError),