Skip to content

Commit 3773660

Browse files
committed
STYLE: Remove unused variable warnings
1 parent 0a7dd27 commit 3773660

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

examples/Core/ThreadOverhead.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Op
7373
};
7474
}
7575

76-
ProbeType time_it(unsigned int threads, unsigned int iterations, bool realtime = true)
76+
static ProbeType time_it(unsigned int threads, unsigned int iterations)
7777
{
7878

7979
constexpr unsigned int Dimension = 1;

examples/Filtering/BinaryAddBenchmark.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ int main( int argc, char * argv[] )
7373
constexpr unsigned int Dimension = 3;
7474
using PixelType = float;
7575

76-
using ImageType = itk::Image< PixelType, 3 >;
76+
using ImageType = itk::Image< PixelType, Dimension >;
7777

7878
ImageType::Pointer inputImage1 = ReadImage<ImageType>(inputImage1FileName);
7979
ImageType::Pointer inputImage2 = ReadImage<ImageType>(inputImage2FileName);

examples/Filtering/MedianBenchmark.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int main( int argc, char * argv[] )
4646
constexpr unsigned int Dimension = 3;
4747
using PixelType = unsigned char;
4848

49-
using ImageType = itk::Image< PixelType, 3 >;
49+
using ImageType = itk::Image< PixelType, Dimension >;
5050

5151
using ReaderType = itk::ImageFileReader< ImageType >;
5252
ReaderType::Pointer reader = ReaderType::New();

examples/Filtering/MinMaxCurvatureFlowBenchmark.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ int main( int argc, char * argv[] )
4747
using InputPixelType = unsigned char;
4848
using OutputPixelType = float;
4949

50-
using InputImageType = itk::Image< InputPixelType, 3 >;
51-
using OutputImageType = itk::Image< OutputPixelType, 3 >;
50+
using InputImageType = itk::Image< InputPixelType, Dimension >;
51+
using OutputImageType = itk::Image< OutputPixelType, Dimension >;
5252

5353
using ReaderType = itk::ImageFileReader< InputImageType >;
5454
ReaderType::Pointer reader = ReaderType::New();

examples/Filtering/UnaryAddBenchmark.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ int main( int argc, char * argv[] )
7272
constexpr unsigned int Dimension = 3;
7373
using PixelType = float;
7474

75-
using ImageType = itk::Image< PixelType, 3 >;
75+
using ImageType = itk::Image< PixelType, Dimension >;
7676

7777
ImageType::Pointer inputImage1 = ReadImage<ImageType>(inputImage1FileName);
7878

examples/Registration/DemonsRegistrationBenchmark.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int main( int argc, char * argv[] )
8888
using PixelType = float;
8989
using ParametersValueType = double;
9090

91-
using ImageType = itk::Image< PixelType, 3 >;
91+
using ImageType = itk::Image< PixelType, Dimension >;
9292

9393
using ReaderType = itk::ImageFileReader< ImageType >;
9494
ReaderType::Pointer reader = ReaderType::New();

examples/Registration/NormalizedCorrelationBenchmark.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int main(int argc, char * argv[])
4747
using PixelType = float;
4848
using ParametersValueType = double;
4949

50-
using ImageType = itk::Image< PixelType, 3 >;
50+
using ImageType = itk::Image< PixelType, Dimension >;
5151

5252
using ReaderType = itk::ImageFileReader< ImageType >;
5353
ReaderType::Pointer reader = ReaderType::New();

0 commit comments

Comments
 (0)