From 1368e72d0eb38c286539866deefa03c28b26ca61 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 23 Nov 2023 17:20:07 +0100 Subject: [PATCH] Remove unnecessary `pub`s --- crates/fj-core/src/algorithms/triangulate/polygon.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/fj-core/src/algorithms/triangulate/polygon.rs b/crates/fj-core/src/algorithms/triangulate/polygon.rs index 4dea94902..cb18de13f 100644 --- a/crates/fj-core/src/algorithms/triangulate/polygon.rs +++ b/crates/fj-core/src/algorithms/triangulate/polygon.rs @@ -90,12 +90,12 @@ impl Polygon { true } - pub fn contains_exterior_edge(&self, edge: Segment<2>) -> bool { + fn contains_exterior_edge(&self, edge: Segment<2>) -> bool { self.exterior.segments().contains(&edge) || self.exterior.segments().contains(&edge.reverse()) } - pub fn contains_interior_edge(&self, edge: Segment<2>) -> bool { + fn contains_interior_edge(&self, edge: Segment<2>) -> bool { let mut contains = false; for chain in &self.interiors { @@ -113,7 +113,7 @@ impl Polygon { /// This code is being duplicated by the `Contains>` implementation /// for `Face`. It would be nice to be able to consolidate the duplication, /// but this has turned out to be difficult. - pub fn contains_point(&self, point: impl Into>) -> bool { + fn contains_point(&self, point: impl Into>) -> bool { let ray = HorizontalRayToTheRight { origin: point.into(), };