Skip to content

Commit

Permalink
Merge pull request #2107 from hannobraun/cleanup
Browse files Browse the repository at this point in the history
Remove unnecessary `pub`s
  • Loading branch information
hannobraun authored Nov 23, 2023
2 parents 71888c7 + 1368e72 commit b95253a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/fj-core/src/algorithms/triangulate/polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -113,7 +113,7 @@ impl Polygon {
/// This code is being duplicated by the `Contains<Point<2>>` 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<Point<2>>) -> bool {
fn contains_point(&self, point: impl Into<Point<2>>) -> bool {
let ray = HorizontalRayToTheRight {
origin: point.into(),
};
Expand Down

0 comments on commit b95253a

Please sign in to comment.