From 49612beced18c4e0c71bd1ba71d9f4a567fdb53e Mon Sep 17 00:00:00 2001 From: Jean Felder Date: Fri, 11 Oct 2024 10:34:07 +0200 Subject: [PATCH] buffer3d: remove Unused variable is_first This fixes the following warning: ``` warning: variable 'is_first' set but not used [-Wunused-but-set-variable] ``` --- src/algorithm/buffer3D.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/algorithm/buffer3D.cpp b/src/algorithm/buffer3D.cpp index 1370594e..3265f415 100644 --- a/src/algorithm/buffer3D.cpp +++ b/src/algorithm/buffer3D.cpp @@ -108,7 +108,6 @@ Buffer3D::computeCylSphereBuffer() const -> std::unique_ptr { typedef CGAL::Nef_polyhedron_3 Nef_polyhedron; Nef_polyhedron result; - bool is_first = true; // Add a sphere at the first point of the line if (!_inputPoints.empty()) { @@ -128,8 +127,7 @@ Buffer3D::computeCylSphereBuffer() const -> std::unique_ptr start_sphere.generatePolyhedron(); Nef_polyhedron start_sphere_nef(start_sphere_poly); - result = start_sphere_nef; - is_first = false; + result = start_sphere_nef; } // Create a cylinder and spheres for each segment of the line