From 7bd8ddc8fafddd39d3f97337394fa9997ab51b22 Mon Sep 17 00:00:00 2001 From: Aitik Gupta Date: Fri, 2 Oct 2020 09:27:16 +0530 Subject: [PATCH] removed no-affect variable --- modules/imgproc/src/subdivision2d.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/imgproc/src/subdivision2d.cpp b/modules/imgproc/src/subdivision2d.cpp index 7abefa8..c254c5f 100644 --- a/modules/imgproc/src/subdivision2d.cpp +++ b/modules/imgproc/src/subdivision2d.cpp @@ -758,7 +758,6 @@ void Subdiv2D::getTriangleList(std::vector& triangleList) const triangleList.clear(); int i, total = (int)(qedges.size()*4); std::vector 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& 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; -- 2.7.4