Skip to content

Commit 21234c9

Browse files
committed
js/closure: remove unused vars
1 parent 0a5fb26 commit 21234c9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

js/closure/openlocationcode_test.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ testSuite({
7575
const fields = lines[i].split(',');
7676
const lat = parseFloat(fields[0]);
7777
const lng = parseFloat(fields[1]);
78-
const latInt = parseInt(fields[2], 10);
79-
const lngInt = parseInt(fields[3], 10);
78+
// const latInt = parseInt(fields[2], 10);
79+
// const lngInt = parseInt(fields[3], 10);
8080
const length = parseInt(fields[4], 10);
8181
const code = fields[5];
8282

@@ -96,8 +96,8 @@ testSuite({
9696
const lines = xhrIo_.getResponseText().match(/^[^#].+/gm);
9797
for (var i = 0; i < lines.length; i++) {
9898
const fields = lines[i].split(',');
99-
const lat = parseFloat(fields[0]);
100-
const lng = parseFloat(fields[1]);
99+
// const lat = parseFloat(fields[0]);
100+
// const lng = parseFloat(fields[1]);
101101
const latInt = parseInt(fields[2], 10);
102102
const lngInt = parseInt(fields[3], 10);
103103
const length = parseInt(fields[4], 10);
@@ -123,6 +123,8 @@ testSuite({
123123
const lng = parseFloat(fields[1]);
124124
const latInt = parseInt(fields[2], 10);
125125
const lngInt = parseInt(fields[3], 10);
126+
// const length = parseInt(fields[4], 10);
127+
// const code = fields[5];
126128

127129
const got = OpenLocationCode._locationToIntegers(lat, lng);
128130
assertEquals('testLocationToIntegers: latitude ' + 1, latInt, got[0]);

0 commit comments

Comments
 (0)