From 4a3b4042ecc32756e32a3ee096dfacfc131fa389 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 21 Mar 2022 17:34:52 +0100 Subject: [PATCH] Make method private It's not used anywhere else. The only reason that it was public in the first place, was that the triangulation code used to be scattered all over the kernel. --- fj-kernel/src/algorithms/mod.rs | 5 ++--- fj-kernel/src/algorithms/triangulation.rs | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/fj-kernel/src/algorithms/mod.rs b/fj-kernel/src/algorithms/mod.rs index 5c2298dbb..14e0f3d1d 100644 --- a/fj-kernel/src/algorithms/mod.rs +++ b/fj-kernel/src/algorithms/mod.rs @@ -8,7 +8,6 @@ mod sweep; mod triangulation; pub use self::{ - approximation::Approximation, - sweep::sweep_shape, - triangulation::{delaunay, triangulate}, + approximation::Approximation, sweep::sweep_shape, + triangulation::triangulate, }; diff --git a/fj-kernel/src/algorithms/triangulation.rs b/fj-kernel/src/algorithms/triangulation.rs index c7e8c7c73..e2daeffa1 100644 --- a/fj-kernel/src/algorithms/triangulation.rs +++ b/fj-kernel/src/algorithms/triangulation.rs @@ -160,9 +160,7 @@ pub fn triangulate( } /// Create a Delaunay triangulation of all points -pub fn delaunay( - points: Vec>, -) -> Vec<[geometry::Point<2>; 3]> { +fn delaunay(points: Vec>) -> Vec<[geometry::Point<2>; 3]> { use spade::Triangulation as _; let triangulation = spade::DelaunayTriangulation::<_>::bulk_load(points)