Skip to content

Commit cd29911

Browse files
authored
Update open_location_code.dart
1 parent f88bf38 commit cd29911

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dart/lib/src/open_location_code.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,6 @@ String recoverNearest(
348348
centerLatitude += resolution;
349349
}
350350

351-
// How many degrees longitude is the code from the reference?
352-
degreesDifference = codeArea.center.longitude - referenceLongitude;
353-
if (degreesDifference > areaToEdge) {
354-
centerLongitude -= resolution;
355-
} else if (degreesDifference < -areaToEdge) {
356-
centerLongitude += resolution;
357-
}
358-
359351
// How many degrees longitude is the code from the reference?
360352
if (referenceLongitude + halfResolution < centerLongitude) {
361353
centerLongitude -= resolution;

0 commit comments

Comments
 (0)