Remove unused variables in structs
This commit is contained in:
@@ -26,12 +26,14 @@ describe('ol.structs.IntegerSet', function() {
|
||||
it('throws an exception with an odd number of elements', function() {
|
||||
expect(function() {
|
||||
var is = new ol.structs.IntegerSet([0, 2, 4]);
|
||||
is = is; // suppress gjslint warning about unused variable
|
||||
}).to.throwException();
|
||||
});
|
||||
|
||||
it('throws an exception with out-of-order elements', function() {
|
||||
expect(function() {
|
||||
var is = new ol.structs.IntegerSet([0, 2, 2, 4]);
|
||||
is = is; // suppress gjslint warning about unused variable
|
||||
}).to.throwException();
|
||||
});
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ describe('ol.structs.PriorityQueue', function() {
|
||||
pq = new ol.structs.PriorityQueue(function(element) {
|
||||
return Math.abs(element - target);
|
||||
}, goog.identityFunction);
|
||||
var element, i;
|
||||
var i;
|
||||
for (i = 0; i < 32; ++i) {
|
||||
pq.enqueue(Math.random());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user