Skip to content

Commit

Permalink
buffer3d: remove Unused variable is_first
Browse files Browse the repository at this point in the history
This fixes the following warning:

```
warning: variable 'is_first' set but not used
[-Wunused-but-set-variable]
```
  • Loading branch information
ptitjano authored and lbartoletti committed Oct 17, 2024
1 parent f5b9bed commit f7c31f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/algorithm/buffer3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ Buffer3D::computeCylSphereBuffer() const -> std::unique_ptr<PolyhedralSurface>
{
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
Nef_polyhedron result;
bool is_first = true;

// Add a sphere at the first point of the line
if (!_inputPoints.empty()) {
Expand All @@ -128,8 +127,7 @@ Buffer3D::computeCylSphereBuffer() const -> std::unique_ptr<PolyhedralSurface>
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
Expand Down

0 comments on commit f7c31f0

Please sign in to comment.