From 74d19c47780ba3e3b6bc7d666ea5c5dacb260d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Valque?= Date: Wed, 5 Mar 2025 09:37:48 +0100 Subject: [PATCH] remove unused variable --- Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h | 2 -- Distance_3/include/CGAL/Distance_3/Segment_3_Segment_3.h | 3 --- 2 files changed, 5 deletions(-) diff --git a/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h b/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h index eae3f4d7326..f9545323e4a 100644 --- a/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h +++ b/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h @@ -306,7 +306,6 @@ compare_squared_distance_to_triangle(const typename K::Point_3& pt, typename K::Construct_segment_3 segment = k.construct_segment_3_object(); typename K::Construct_vector_3 vector = k.construct_vector_3_object(); - typename K::Compute_squared_distance_3 sq_dist = k.compute_squared_distance_3_object(); typename K::Compare_squared_distance_3 csq_dist = k.compare_squared_distance_3_object(); /* The content of this function is very similar with the one above, the difference is we can exit earlier if @@ -315,7 +314,6 @@ compare_squared_distance_to_triangle(const typename K::Point_3& pt, const Vector_3 e1 = vector(t0, t1); const Vector_3 oe3 = vector(t0, t2); const Vector_3 normal = wcross(e1, oe3, k); - const Vector_3 diff = vector(pt, t0); if(normal == NULL_VECTOR) { diff --git a/Distance_3/include/CGAL/Distance_3/Segment_3_Segment_3.h b/Distance_3/include/CGAL/Distance_3/Segment_3_Segment_3.h index d9dcb2ef91b..8967e982a79 100644 --- a/Distance_3/include/CGAL/Distance_3/Segment_3_Segment_3.h +++ b/Distance_3/include/CGAL/Distance_3/Segment_3_Segment_3.h @@ -225,9 +225,6 @@ compare_squared_distance(const typename K::Segment_3& s1, else if(p2 == q2) return csq_dist(s1,p2,d2); - const Vector_3 normal = wcross(v1, v2, k); - const Vector_3 diff = p1p2; - // Compare first the distance between the lines, if larger we can exit early typename K::Comparison_result res_ll=csq_dist(s1.supporting_line(), s2.supporting_line(), d2); if(certainly(res_ll==LARGER))