mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Remove unused code
This commit is contained in:
parent
dbc5f6656e
commit
df11742d14
@ -1,7 +1,6 @@
|
|||||||
mod handle;
|
mod handle;
|
||||||
mod handle_any;
|
mod handle_any;
|
||||||
mod traits;
|
mod traits;
|
||||||
mod with_label;
|
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
handle::Handle,
|
handle::Handle,
|
||||||
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user