Skip to content

Commit 7e9959f

Browse files
kian-weimerdzenanz
authored andcommitted
COMP: Removed unused variables causing compiler warning.
These `seedImage` and `compareTolerance` variables are only used within a code block that is currently commented out. Alternatively, these variables could be deleted if it is decided that the commented out code is no longer wanted. This resolves the following compiler warnings: /localscratch/Users/kjweimer/ITK/Modules/Remote/GrowCut/include/itkFastGrowCut.hxx:376:14: warning: unused variable ‘seedImage’ [-Wunused-variable] 376 | auto seedImage = this->GetSeedImage(); | ^~~~~~~~~ /localscratch/Users/kjweimer/ITK/Modules/Remote/GrowCut/include/itkFastGrowCut.hxx:381:16: warning: unused variable ‘compareTolerance’ [-Wunused-variable] 381 | const double compareTolerance = (spacing[0] + spacing[1] + spacing[2]) / 3.0 * 0.01; | ^~~~~~~~~~~~~~~~
1 parent 1f0fdf7 commit 7e9959f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/itkFastGrowCut.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ void
372372
FastGrowCut<TInputImage, TLabelImage, TMaskImage>::GenerateData()
373373
{
374374
auto inputImage = this->GetInput();
375-
auto seedImage = this->GetSeedImage();
375+
// auto seedImage = this->GetSeedImage();
376376
auto outputImage = this->GetOutput();
377377
RegionType inRegion = inputImage->GetLargestPossibleRegion();
378378

379379
SpacingType spacing = inputImage->GetSpacing();
380-
const double compareTolerance = (spacing[0] + spacing[1] + spacing[2]) / 3.0 * 0.01;
380+
// const double compareTolerance = (spacing[0] + spacing[1] + spacing[2]) / 3.0 * 0.01;
381381

382382
// Copy seedImage into the output
383383
RegionType region = outputImage->GetRequestedRegion();

0 commit comments

Comments
 (0)