Remove unused variables in structs

This commit is contained in:
Tom Payne
2013-05-21 12:49:40 +02:00
parent 8b539cd4cc
commit f4d54ace1d
3 changed files with 3 additions and 2 deletions

View File

@@ -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();
});

View File

@@ -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());
}