From 124ce1c31fb24ce05191971997d985e56ac69daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Thu, 4 Jan 2024 00:10:20 +0100 Subject: [PATCH] Silence the warning about the unused function get_deviation_sum_squared() in Arc Welder. --- src/libslic3r/Geometry/ArcWelder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/Geometry/ArcWelder.cpp b/src/libslic3r/Geometry/ArcWelder.cpp index 4b02a31dce..0bc71aea3a 100644 --- a/src/libslic3r/Geometry/ArcWelder.cpp +++ b/src/libslic3r/Geometry/ArcWelder.cpp @@ -120,6 +120,7 @@ static inline bool circle_approximation_sufficient(const Circle &circle, const P return true; } +#if 0 static inline bool get_deviation_sum_squared(const Circle &circle, const Points::const_iterator begin, const Points::const_iterator end, const double tolerance, double &total_deviation) { // The circle was calculated from the 1st and last point of the point sequence, thus the fitting of those points does not need to be evaluated. @@ -148,6 +149,7 @@ static inline bool get_deviation_sum_squared(const Circle &circle, const Points: return true; } +#endif double arc_fit_variance(const Point &start_pos, const Point &end_pos, const float radius, bool is_ccw, const Points::const_iterator begin, const Points::const_iterator end)