Remove unused code

This commit is contained in:
Hanno Braun 2025-02-17 21:52:36 +01:00
parent dbc5f6656e
commit df11742d14
2 changed files with 0 additions and 38 deletions

View File

@ -1,7 +1,6 @@
mod handle;
mod handle_any;
mod traits;
mod with_label;
pub use self::{
handle::Handle,

View File

@ -1,37 +0,0 @@
use std::fmt;
use crate::geometry::TriMesh;
use super::{HandleAny, Operation, OperationOutput};
pub struct WithLabel<T> {
pub text: &'static str,
pub op: T,
}
impl<T> Operation for WithLabel<T>
where
T: Operation,
{
fn display(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}: ", self.text)?;
self.op.display(f)
}
fn tri_mesh(&self) -> TriMesh {
self.op.tri_mesh()
}
fn children(&self) -> Vec<HandleAny> {
self.op.children()
}
}
impl<T> OperationOutput<T> for WithLabel<T>
where
T: OperationOutput<T>,
{
fn output(&self) -> &T {
self.op.output()
}
}