From da8ba59566cdb8ba4fc0c667600192f583ec8703 Mon Sep 17 00:00:00 2001 From: Stefan Altmayer Date: Fri, 17 May 2024 11:25:12 +0200 Subject: [PATCH] Remove leftover function --- src/delaunay_core/triangulation_ext.rs | 47 +------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/src/delaunay_core/triangulation_ext.rs b/src/delaunay_core/triangulation_ext.rs index d12e3aa..8ccd1e9 100644 --- a/src/delaunay_core/triangulation_ext.rs +++ b/src/delaunay_core/triangulation_ext.rs @@ -9,7 +9,7 @@ use crate::HintGenerator; use crate::Point2; use crate::{HasPosition, InsertionError, PositionInTriangulation, Triangulation}; -use alloc::{collections::VecDeque, vec::Vec}; +use alloc::vec::Vec; impl TriangulationExt for T where T: Triangulation + ?Sized {} @@ -255,51 +255,6 @@ pub trait TriangulationExt: Triangulation { result } - fn get_vertex_facing_edges( - &self, - start_edge: FixedDirectedEdgeHandle, - position: Point2<::Scalar>, - forward_predicate: ForwardPredicate, - backward_predicate: BackwardPredicate, - ) -> VecDeque - where - ForwardPredicate: Fn( - DirectedEdgeHandle, - ) -> bool, - BackwardPredicate: Fn( - DirectedEdgeHandle, - ) -> bool, - { - let mut result = VecDeque::with_capacity(8); - let mut current_edge_forward = self.directed_edge(start_edge); - - debug_assert!(current_edge_forward.side_query(position).is_on_left_side()); - - result.push_back(current_edge_forward.fix()); - - loop { - current_edge_forward = current_edge_forward.next(); - - if forward_predicate(current_edge_forward) { - result.push_back(current_edge_forward.fix()); - } else { - break; - } - } - - let mut current_edge_backward = self.directed_edge(start_edge); - loop { - current_edge_backward = current_edge_backward.prev(); - - if backward_predicate(current_edge_backward) { - result.push_front(current_edge_backward.fix()); - } else { - break; - } - } - result - } - fn insert_into_face( &mut self, face: FixedFaceHandle,