diff --git a/lib/src/turf_equality_base.dart b/lib/src/turf_equality_base.dart index 74fef30..4187829 100644 --- a/lib/src/turf_equality_base.dart +++ b/lib/src/turf_equality_base.dart @@ -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> linearRings1 = deconstruct(polygon1); List> linearRings2 = deconstruct(polygon2);