Skip to content

Commit

Permalink
Merge pull request #25 from cerati/remove-unused-dist2
Browse files Browse the repository at this point in the history
remove unused dist2 variable (fails compilation with Werror=unused-va…
  • Loading branch information
abellgithub authored Sep 4, 2024
2 parents 36584b3 + 50a27a6 commit 38474ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/delaunator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ inline bool clockwise(const Point& p0, const Point& p1, const Point& p2)
Point v1 = Point::vector(p0, p2);
double det = Point::determinant(v0, v1);
double dist = v0.magnitude2() + v1.magnitude2();
double dist2 = Point::dist2(v0, v1);
if (det == 0)
{
return false;
Expand All @@ -120,7 +119,6 @@ inline bool counterclockwise(const Point& p0, const Point& p1, const Point& p2)
Point v1 = Point::vector(p0, p2);
double det = Point::determinant(v0, v1);
double dist = v0.magnitude2() + v1.magnitude2();
double dist2 = Point::dist2(v0, v1);
if (det == 0)
return false;
double reldet = std::abs(dist / det);
Expand Down

0 comments on commit 38474ee

Please sign in to comment.