From fcb6695a0d4b872565f703eae95499798025a791 Mon Sep 17 00:00:00 2001 From: STP Date: Mon, 20 Nov 2023 20:04:22 -0500 Subject: [PATCH] Removed Intersection::new as it was never used --- src/primitive.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/primitive.rs b/src/primitive.rs index 4f7d50b..ad53352 100644 --- a/src/primitive.rs +++ b/src/primitive.rs @@ -58,23 +58,6 @@ pub struct Intersection { pub material: Arc, pub distance: f32, } -impl Intersection { - pub fn new( - point: Point3, - normal: Unit>, - incidence: Unit>, - material: Arc, - t: f32, - ) -> Self { - Intersection { - point, - normal, - incidence, - material, - distance: t, - } - } -} // BOUNDING BOX ----------------------------------------------------------------- #[derive(Clone)] struct BoundingBox {