Skip to content

Commit 6add3b9

Browse files
committed
Merge pull request opencv#18487 from aitikgupta:unnecessary-variable
2 parents 1ddd61f + 7bd8ddc commit 6add3b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/imgproc/src/subdivision2d.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,6 @@ void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const
758758
triangleList.clear();
759759
int i, total = (int)(qedges.size()*4);
760760
std::vector<bool> edgemask(total, false);
761-
const bool filterPoints = true;
762761
Rect2f rect(topLeft.x, topLeft.y, bottomRight.x - topLeft.x, bottomRight.y - topLeft.y);
763762

764763
for( i = 4; i < total; i += 2 )
@@ -768,15 +767,15 @@ void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const
768767
Point2f a, b, c;
769768
int edge_a = i;
770769
edgeOrg(edge_a, &a);
771-
if (filterPoints && !rect.contains(a))
770+
if ( !rect.contains(a) )
772771
continue;
773772
int edge_b = getEdge(edge_a, NEXT_AROUND_LEFT);
774773
edgeOrg(edge_b, &b);
775-
if (filterPoints && !rect.contains(b))
774+
if ( !rect.contains(b) )
776775
continue;
777776
int edge_c = getEdge(edge_b, NEXT_AROUND_LEFT);
778777
edgeOrg(edge_c, &c);
779-
if (filterPoints && !rect.contains(c))
778+
if ( !rect.contains(c) )
780779
continue;
781780
edgemask[edge_a] = true;
782781
edgemask[edge_b] = true;

0 commit comments

Comments
 (0)