Skip to content

Commit 99b53cc

Browse files
committed
Remove some excessive logging in debug mode
1 parent c42e200 commit 99b53cc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/geom-pole-of-inaccessibility.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ point_t pole_of_inaccessibility(const polygon_t &polygon, double precision,
210210
best_cell = bbox_cell;
211211
}
212212

213-
auto num_probes = cell_queue.size();
214213
while (!cell_queue.empty()) {
215214
// pick the most promising cell from the queue
216215
auto cell = cell_queue.top();
@@ -219,8 +218,6 @@ point_t pole_of_inaccessibility(const polygon_t &polygon, double precision,
219218
// update the best cell if we found a better one
220219
if (cell.dist > best_cell.dist) {
221220
best_cell = cell;
222-
log_debug("polyline: found best {} after {} probes",
223-
::round(1e4 * cell.dist) / 1e4, num_probes);
224221
}
225222

226223
// do not drill down further if there's no chance of a better solution
@@ -241,13 +238,8 @@ point_t pole_of_inaccessibility(const polygon_t &polygon, double precision,
241238
}
242239
}
243240
}
244-
245-
num_probes += 4;
246241
}
247242

248-
log_debug("polyline: num probes: {}", num_probes);
249-
log_debug("polyline: best distance: {}", best_cell.dist);
250-
251243
return {best_cell.center.x(), best_cell.center.y() / stretch};
252244
}
253245

0 commit comments

Comments
 (0)