From 2cb74013be2e244115ba3c6acdc19ed4570f680e Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 9 Jun 2022 17:23:55 +0200 Subject: [PATCH] Remove junk --- src/libslic3r/BranchingTree/PointCloud.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libslic3r/BranchingTree/PointCloud.hpp b/src/libslic3r/BranchingTree/PointCloud.hpp index e781aad010..e11c2f8510 100644 --- a/src/libslic3r/BranchingTree/PointCloud.hpp +++ b/src/libslic3r/BranchingTree/PointCloud.hpp @@ -206,10 +206,8 @@ public: namespace bgi = boost::geometry::index; - size_t cnt = 0; auto filter = bgi::satisfies( - [this, &pos, min_dist, &cnt](const PointIndexEl &e) { - cnt++; + [this, &pos, min_dist](const PointIndexEl &e) { double d = get_distance(pos, e.second); return m_searchable_indices[e.second] && !isinf(d) && d > min_dist; });