mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +00:00
Remove unused code
This commit is contained in:
parent
16ae87d39b
commit
a05fd64a93
@ -74,22 +74,6 @@ impl Sketch {
|
||||
}
|
||||
}
|
||||
|
||||
impl<I, P> From<I> for Sketch
|
||||
where
|
||||
I: IntoIterator<Item = P>,
|
||||
P: Into<Point<2>>,
|
||||
{
|
||||
fn from(points: I) -> Self {
|
||||
let segments = points
|
||||
.into_iter()
|
||||
.map(Into::into)
|
||||
.map(|point| SketchSegment::Line { start: point })
|
||||
.collect();
|
||||
|
||||
Self { segments }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
enum SketchSegment {
|
||||
Line { start: Point<2> },
|
||||
|
Loading…
Reference in New Issue
Block a user