Remove unnecessary cast

Found by the latest version of closure-compiler (v20150729)
This commit is contained in:
Frederic Junod
2015-08-31 11:43:30 +02:00
parent 965a27b115
commit 529f869803
6 changed files with 7 additions and 18 deletions

View File

@@ -42,7 +42,7 @@ ol.TileCache.prototype.canExpireCache = function() {
ol.TileCache.prototype.expireCache = function(usedTiles) {
var tile, zKey;
while (this.canExpireCache()) {
tile = /** @type {ol.Tile} */ (this.peekLast());
tile = this.peekLast();
zKey = tile.tileCoord[0].toString();
if (zKey in usedTiles && usedTiles[zKey].contains(tile.tileCoord)) {
break;