diff --git a/src/ol/tilecache.js b/src/ol/tilecache.js index f72c4ed1cf..5402e3b6c4 100644 --- a/src/ol/tilecache.js +++ b/src/ol/tilecache.js @@ -2,7 +2,6 @@ goog.provide('ol.TileCache'); goog.require('ol'); 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); - } - } -};