Skip to content

Commit f96bd93

Browse files
committed
fix(contourc): remove unused variable
1 parent 0a83080 commit f96bd93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/matplot/util/contourc.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,12 @@ namespace matplot {
396396

397397
const ContourLine::Children &children = line.get_children();
398398
// number of points in the line itself
399-
size_t npoints = static_cast<size_t>(line.size() + 1);
400-
// accumulate the number of points for each line child
401-
for (children_it = children.begin();
402-
children_it != children.end(); ++children_it) {
403-
npoints += static_cast<size_t>((*children_it)->size() + 1);
404-
}
399+
// size_t npoints = static_cast<size_t>(line.size() + 1);
400+
// // accumulate the number of points for each line child
401+
// for (children_it = children.begin();
402+
// children_it != children.end(); ++children_it) {
403+
// npoints += static_cast<size_t>((*children_it)->size() + 1);
404+
// }
405405

406406
auto is_valid_point = [](double x, double y) {
407407
return std::isfinite(x) && std::isfinite(y) && x != 0. &&

0 commit comments

Comments
 (0)