From 870c996411b2b37bac6a10694dc09a864578c2d9 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 24 Feb 2023 14:03:53 +0100 Subject: [PATCH] Remove unused argument --- .../src/algorithms/intersect/face_face.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/intersect/face_face.rs b/crates/fj-kernel/src/algorithms/intersect/face_face.rs index 9525ed985..96e2f35a8 100644 --- a/crates/fj-kernel/src/algorithms/intersect/face_face.rs +++ b/crates/fj-kernel/src/algorithms/intersect/face_face.rs @@ -1,11 +1,7 @@ use fj_interop::ext::ArrayExt; use iter_fixed::IntoIteratorFixed; -use crate::{ - geometry::path::SurfacePath, - objects::{Face, Objects}, - services::Service, -}; +use crate::{geometry::path::SurfacePath, objects::Face}; use super::{CurveFaceIntersection, SurfaceSurfaceIntersection}; @@ -28,10 +24,7 @@ pub struct FaceFaceIntersection { impl FaceFaceIntersection { /// Compute the intersections between two faces - pub fn compute( - faces: [&Face; 2], - _: &mut Service, - ) -> Option { + pub fn compute(faces: [&Face; 2]) -> Option { let surfaces = faces.map(|face| face.surface().clone()); let intersection_curves = @@ -102,8 +95,7 @@ mod tests { face.build(&mut services.objects) }); - let intersection = - FaceFaceIntersection::compute([&a, &b], &mut services.objects); + let intersection = FaceFaceIntersection::compute([&a, &b]); assert!(intersection.is_none()); } @@ -133,8 +125,7 @@ mod tests { face.build(&mut services.objects) }); - let intersection = - FaceFaceIntersection::compute([&a, &b], &mut services.objects); + let intersection = FaceFaceIntersection::compute([&a, &b]); let expected_curves = surfaces.map(|_| { let (path, _) = SurfacePath::line_from_points([[0., 0.], [1., 0.]]);