diff Framework/Toolbox/DicomStructurePolygon2.cpp @ 1018:58eed6bbcabb

fix warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Sep 2019 09:22:27 +0200
parents 38b6bb0bdd72
children 29f5f2031310
line wrap: on
line diff
--- a/Framework/Toolbox/DicomStructurePolygon2.cpp	Thu Sep 26 09:16:21 2019 +0200
+++ b/Framework/Toolbox/DicomStructurePolygon2.cpp	Thu Sep 26 09:22:27 2019 +0200
@@ -89,9 +89,6 @@
     // if true, then "u" in the code is "x" and "v" is "y". 
     // (v is constant in the plane)
     bool uvxy = false;
-    // if true, then "u" in the code is "y" and "v" is "x"
-    // (v is constant in the plane)
-    bool uvyx = false;
 
     size_t uindex = static_cast<size_t>(-1);
     size_t vindex = static_cast<size_t>(-1);
@@ -106,7 +103,6 @@
       vindex = 0;
 
       uvxy = false;
-      uvyx = true;
       planeV = plane.GetOrigin()[0];
       if (planeV < minX_)
         return;
@@ -121,7 +117,6 @@
       vindex = 1;
 
       uvxy = true;
-      uvyx = false;
       planeV = plane.GetOrigin()[1];
       if (planeV < minY_)
         return;
@@ -254,8 +249,6 @@
   ORTHANC_ASSERT(LinearAlgebra::IsNear(plane.GetNormal()[0], 0.0));
   ORTHANC_ASSERT(LinearAlgebra::IsNear(plane.GetNormal()[1], 0.0));
 
-  size_t pointCount = GetPointCount();
-
   segments.clear();
   segments.reserve(points_.size());
   // since the returned values need to be expressed in the supplied coordinate