removed no-affect variable
authorAitik Gupta <aitikgupta@gmail.com>
Fri, 2 Oct 2020 03:57:16 +0000 (09:27 +0530)
committerAitik Gupta <aitikgupta@gmail.com>
Fri, 2 Oct 2020 03:57:16 +0000 (09:27 +0530)
modules/imgproc/src/subdivision2d.cpp

index 7abefa8c6edeb91b828d097e40d56dfc8b4118ff..c254c5f9c620318641bb5df76b378c45edad8534 100644 (file)
@@ -758,7 +758,6 @@ void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const
     triangleList.clear();
     int i, total = (int)(qedges.size()*4);
     std::vector<bool> edgemask(total, false);
-    const bool filterPoints = true;
     Rect2f rect(topLeft.x, topLeft.y, bottomRight.x - topLeft.x, bottomRight.y - topLeft.y);
 
     for( i = 4; i < total; i += 2 )
@@ -768,15 +767,15 @@ void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const
         Point2f a, b, c;
         int edge_a = i;
         edgeOrg(edge_a, &a);
-        if (filterPoints && !rect.contains(a))
+        if ( !rect.contains(a) )
             continue;
         int edge_b = getEdge(edge_a, NEXT_AROUND_LEFT);
         edgeOrg(edge_b, &b);
-        if (filterPoints && !rect.contains(b))
+        if ( !rect.contains(b) )
             continue;
         int edge_c = getEdge(edge_b, NEXT_AROUND_LEFT);
         edgeOrg(edge_c, &c);
-        if (filterPoints && !rect.contains(c))
+        if ( !rect.contains(c) )
             continue;
         edgemask[edge_a] = true;
         edgemask[edge_b] = true;