Skip to content

Commit 50a27a6

Browse files
committed
remove unused dist2 variable (fails compilation with Werror=unused-variable)
1 parent 36584b3 commit 50a27a6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/delaunator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ inline bool clockwise(const Point& p0, const Point& p1, const Point& p2)
9494
Point v1 = Point::vector(p0, p2);
9595
double det = Point::determinant(v0, v1);
9696
double dist = v0.magnitude2() + v1.magnitude2();
97-
double dist2 = Point::dist2(v0, v1);
9897
if (det == 0)
9998
{
10099
return false;
@@ -120,7 +119,6 @@ inline bool counterclockwise(const Point& p0, const Point& p1, const Point& p2)
120119
Point v1 = Point::vector(p0, p2);
121120
double det = Point::determinant(v0, v1);
122121
double dist = v0.magnitude2() + v1.magnitude2();
123-
double dist2 = Point::dist2(v0, v1);
124122
if (det == 0)
125123
return false;
126124
double reldet = std::abs(dist / det);

0 commit comments

Comments
 (0)