Skip to content

Commit 4f2a35f

Browse files
refactor: remove dead code
1 parent 53d961c commit 4f2a35f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cc3d/cc3d.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,8 @@ uint32_t* compute_foreground_index(
321321
const int64_t voxels = sx * sy * sz;
322322
uint32_t* runs = new uint32_t[2*sy*sz]();
323323

324-
size_t count = 0; // number of transitions between labels
325324
int64_t row = 0;
326325
for (int64_t loc = 0; loc < voxels; loc += sx, row++) {
327-
count += (in_labels[loc] != 0);
328326
size_t index = (row << 1);
329327
for (int64_t x = 0; x < sx; x++) {
330328
if (in_labels[loc + x]) {

0 commit comments

Comments
 (0)