From 2ba3f96d74e8c9726293288ce2081973697d4eef Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Fri, 25 Oct 2024 15:42:54 +0200 Subject: [PATCH] STYLE: Remove unused "one-filled" `direction` matrices from tests These matrices were just filled with `1`, but never used afterwards. This commit prevents "unused variable" warnings, which would occur when the matrices would be filled during their initialization, instead of by calling the `Fill` member function. --- .../Metricsv4/test/itkImageToImageMetricv4RegistrationTest.cxx | 3 --- .../test/itkObjectToObjectMultiMetricv4RegistrationTest.cxx | 3 --- 2 files changed, 6 deletions(-) diff --git a/Modules/Registration/Metricsv4/test/itkImageToImageMetricv4RegistrationTest.cxx b/Modules/Registration/Metricsv4/test/itkImageToImageMetricv4RegistrationTest.cxx index a9253ee2c23..583b69cb087 100644 --- a/Modules/Registration/Metricsv4/test/itkImageToImageMetricv4RegistrationTest.cxx +++ b/Modules/Registration/Metricsv4/test/itkImageToImageMetricv4RegistrationTest.cxx @@ -68,9 +68,6 @@ ImageToImageMetricv4RegistrationTestRun(typename TMetric::Pointer metric, typename TImage::PointType origin{}; - typename TImage::DirectionType direction; - direction.Fill(itk::NumericTraits::OneValue()); - auto fixedImageSource = GaussianImageSourceType::New(); fixedImageSource->SetSize(size); diff --git a/Modules/Registration/Metricsv4/test/itkObjectToObjectMultiMetricv4RegistrationTest.cxx b/Modules/Registration/Metricsv4/test/itkObjectToObjectMultiMetricv4RegistrationTest.cxx index 4737b6c66d8..b54e7f7bf95 100644 --- a/Modules/Registration/Metricsv4/test/itkObjectToObjectMultiMetricv4RegistrationTest.cxx +++ b/Modules/Registration/Metricsv4/test/itkObjectToObjectMultiMetricv4RegistrationTest.cxx @@ -96,9 +96,6 @@ ObjectToObjectMultiMetricv4RegistrationTestCreateImages(typename TImage::Pointer typename TImage::PointType origin{}; - typename TImage::DirectionType direction; - direction.Fill(itk::NumericTraits::OneValue()); - auto fixedImageSource = GaussianImageSourceType::New(); fixedImageSource->SetSize(size);