Remove unused argument

This commit is contained in:
Hanno Braun 2023-02-24 14:03:53 +01:00
parent 196df2cd3f
commit 870c996411

View File

@ -1,11 +1,7 @@
use fj_interop::ext::ArrayExt; use fj_interop::ext::ArrayExt;
use iter_fixed::IntoIteratorFixed; use iter_fixed::IntoIteratorFixed;
use crate::{ use crate::{geometry::path::SurfacePath, objects::Face};
geometry::path::SurfacePath,
objects::{Face, Objects},
services::Service,
};
use super::{CurveFaceIntersection, SurfaceSurfaceIntersection}; use super::{CurveFaceIntersection, SurfaceSurfaceIntersection};
@ -28,10 +24,7 @@ pub struct FaceFaceIntersection {
impl FaceFaceIntersection { impl FaceFaceIntersection {
/// Compute the intersections between two faces /// Compute the intersections between two faces
pub fn compute( pub fn compute(faces: [&Face; 2]) -> Option<Self> {
faces: [&Face; 2],
_: &mut Service<Objects>,
) -> Option<Self> {
let surfaces = faces.map(|face| face.surface().clone()); let surfaces = faces.map(|face| face.surface().clone());
let intersection_curves = let intersection_curves =
@ -102,8 +95,7 @@ mod tests {
face.build(&mut services.objects) face.build(&mut services.objects)
}); });
let intersection = let intersection = FaceFaceIntersection::compute([&a, &b]);
FaceFaceIntersection::compute([&a, &b], &mut services.objects);
assert!(intersection.is_none()); assert!(intersection.is_none());
} }
@ -133,8 +125,7 @@ mod tests {
face.build(&mut services.objects) face.build(&mut services.objects)
}); });
let intersection = let intersection = FaceFaceIntersection::compute([&a, &b]);
FaceFaceIntersection::compute([&a, &b], &mut services.objects);
let expected_curves = surfaces.map(|_| { let expected_curves = surfaces.map(|_| {
let (path, _) = SurfacePath::line_from_points([[0., 0.], [1., 0.]]); let (path, _) = SurfacePath::line_from_points([[0., 0.], [1., 0.]]);