From 670a155386eff18e9c88b9c8d739d5ace6d81460 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 13 Oct 2022 14:23:49 +0200 Subject: [PATCH] Remove unused code --- crates/fj-math/src/triangle.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/fj-math/src/triangle.rs b/crates/fj-math/src/triangle.rs index 54504870e..fb763017f 100644 --- a/crates/fj-math/src/triangle.rs +++ b/crates/fj-math/src/triangle.rs @@ -1,4 +1,3 @@ -use parry2d_f64::utils::point_in_triangle::Orientation; use parry3d_f64::query::{Ray, RayCast as _}; use crate::Vector; @@ -134,16 +133,6 @@ pub enum Winding { Cw, } -impl From for Winding { - fn from(o: Orientation) -> Self { - match o { - Orientation::Ccw => Winding::Ccw, - Orientation::Cw => Winding::Cw, - Orientation::None => unreachable!("not a triangle"), - } - } -} - #[cfg(test)] mod tests { use crate::{Point, Vector};