Skip to content

Commit 0e7998c

Browse files
committed
COMP: Remove unused variable
Remove unused variable. Fixes: ``` Modules/Remote/LabelErodeDilate/include/itkLabelSetUtils.h:260:37: warning: unused variable 'initPixelValue' [-Wunused-variable] 260 | const typename TInIter::PixelType initPixelValue = 0.0; | ^~~~~~~~~~~~~~ ``` raised for example in: https://open.cdash.org/viewBuildError.php?type=1&buildid=10316578 Introducing the variable was an oversight in commit 108b0ba.
1 parent 2506727 commit 0e7998c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/itkLabelSetUtils.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,9 @@ doOneDimensionErodeFirstPass(TInIter & inputIterator,
256256
// restructure equation to reduce numerical error
257257
// const RealType magnitude = (magnitudeSign * iscale * iscale)/(2.0 *
258258
// sigma);
259-
const RealType magnitude = (magnitudeSign * iscale * iscale) / (2.0);
260-
const typename TInIter::PixelType initPixelValue = 0.0;
261-
LineBufferType lineBuf(lineLength, 0.0);
262-
LabelBufferType labBuf(lineLength, 0.0);
259+
const RealType magnitude = (magnitudeSign * iscale * iscale) / (2.0);
260+
LineBufferType lineBuf(lineLength, 0.0);
261+
LabelBufferType labBuf(lineLength, 0.0);
263262

264263
inputIterator.SetDirection(direction);
265264
outputIterator.SetDirection(direction);

0 commit comments

Comments
 (0)