Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiedentop committed Feb 27, 2024
1 parent b346893 commit 3a0fbf3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/src/turf_equality_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@ class Equality {
.toList();
}

// deconstruct() removes the last position of the polygon to make
// it easier to reverse and shift the polygon. First and last positions
// must be the same, so it shouldn't matter, but to make sure, we check
// the last position before removing it.
if (polygon1.coordinates.last != polygon2.coordinates.last) {
return false;
}

List<List<Position>> linearRings1 = deconstruct(polygon1);
List<List<Position>> linearRings2 = deconstruct(polygon2);

Expand Down

0 comments on commit 3a0fbf3

Please sign in to comment.