diff Framework/Toolbox/ImageToolbox.cpp @ 1296:86400fa16091

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Feb 2020 15:25:49 +0100
parents d8c42e5e5843
children 30deba7bc8e2
line wrap: on
line diff
--- a/Framework/Toolbox/ImageToolbox.cpp	Fri Feb 21 15:27:42 2020 +0100
+++ b/Framework/Toolbox/ImageToolbox.cpp	Sun Feb 23 15:25:49 2020 +0100
@@ -99,12 +99,6 @@
         ORTHANC_ASSERT(Format == img.GetFormat(), 
                        "Internal error. Wrong template histogram type");
     
-        const uint8_t*  buffer = reinterpret_cast<const uint8_t*>(
-          img.GetConstBuffer());
-
-        const size_t pitch = img.GetPitch();
-        const size_t bytesPerPix = img.GetBytesPerPixel();
-
         const size_t height = img.GetHeight();
         const size_t width = img.GetHeight();
 
@@ -153,12 +147,6 @@
         ORTHANC_ASSERT(Format == img.GetFormat(), 
                        "Internal error. Wrong template histogram type");
 
-        const uint8_t* buffer = reinterpret_cast<const uint8_t*>(
-          img.GetConstBuffer());
-        
-        const size_t   pitch = img.GetPitch();
-        const size_t   bytesPerPix = img.GetBytesPerPixel();
-
         const size_t height = img.GetHeight();
         const size_t width = img.GetHeight();