Skip to content

Commit 9835670

Browse files
authored
Remove unused and out of scope variables in Clusterer::updateChip (#15574)
1 parent 86bbd10 commit 9835670

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Detectors/ITSMFT/common/reconstruction/src/Clusterer.cxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,12 @@ void Clusterer::ClustererThread::updateChip(const ChipPixelData* curChipData, ui
389389
}
390390
} else {
391391
// row above should be always checked
392-
int nnb = 0, lowestIndex = curr[row - 1], lowestNb = 0, *nbrCol[4], nbrRow[4];
392+
int nnb = 0, lowestIndex = curr[row - 1], *nbrCol[4], nbrRow[4];
393393
if (lowestIndex >= 0) {
394394
nbrCol[nnb] = curr;
395395
nbrRow[nnb++] = row - 1;
396396
} else {
397397
lowestIndex = 0x7ffff;
398-
lowestNb = -1;
399398
}
400399
#ifdef _ALLOW_DIAGONAL_ALPIDE_CLUSTERS_
401400
for (int i : {-1, 0, 1}) {
@@ -405,7 +404,6 @@ void Clusterer::ClustererThread::updateChip(const ChipPixelData* curChipData, ui
405404
nbrRow[nnb] = row + i;
406405
if (v < lowestIndex) {
407406
lowestIndex = v;
408-
lowestNb = nnb;
409407
}
410408
nnb++;
411409
}
@@ -415,8 +413,7 @@ void Clusterer::ClustererThread::updateChip(const ChipPixelData* curChipData, ui
415413
nbrCol[nnb] = prev;
416414
nbrRow[nnb] = row;
417415
if (prev[row] < lowestIndex) {
418-
lowestIndex = v;
419-
lowestNb = nnb;
416+
lowestIndex = prev[row];
420417
}
421418
nnb++;
422419
}

0 commit comments

Comments
 (0)