Get rid of unused pruneTileRange function

This commit is contained in:
Bart van den Eijnden
2016-09-15 08:49:46 +02:00
parent bdced57162
commit 589c6b7ded

View File

@@ -2,7 +2,6 @@ goog.provide('ol.TileCache');
goog.require('ol'); goog.require('ol');
goog.require('ol.structs.LRUCache'); goog.require('ol.structs.LRUCache');
goog.require('ol.tilecoord');
/** /**
@@ -48,21 +47,3 @@ ol.TileCache.prototype.expireCache = function(usedTiles) {
} }
} }
}; };
/**
* Remove a tile range from the cache, e.g. to invalidate tiles.
* @param {ol.TileRange} tileRange The tile range to prune.
*/
ol.TileCache.prototype.pruneTileRange = function(tileRange) {
var i = this.getCount(),
key;
while (i--) {
key = this.peekLastKey();
if (tileRange.contains(ol.tilecoord.createFromString(key))) {
this.pop().dispose();
} else {
this.get(key);
}
}
};