Skip to content

Commit 28745a2

Browse files
authored
Merge branch 'main' into closure_672
2 parents 0a0d99f + 9fee617 commit 28745a2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

js/src/openlocationcode.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,6 @@
348348
lngVal = lngVal % (2 * LONGITUDE_MAX_ * FINAL_LNG_PRECISION_);
349349
}
350350

351-
// // Multiply values by their precision and convert to positive.
352-
// // Force to integers so the division operations will have integer results.
353-
// // Note: JavaScript requires rounding before truncating to ensure precision!
354-
// var latVal =
355-
// Math.floor(Math.round((latitude + LATITUDE_MAX_) * FINAL_LAT_PRECISION_ * 1e6) / 1e6);
356-
// var lngVal =
357-
// Math.floor(Math.round((longitude + LONGITUDE_MAX_) * FINAL_LNG_PRECISION_ * 1e6) / 1e6);
358-
359351
var code = '';
360352
// Compute the grid part of the code if necessary.
361353
if (codeLength > PAIR_CODE_LENGTH_) {

0 commit comments

Comments
 (0)