Skip to content

Commit

Permalink
Last bit of cache-derivative code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Apr 12, 2012
1 parent 43aa31f commit bbb4e51
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/layer.js
Expand Up @@ -213,13 +213,8 @@
* tiles based on values in valid_tile_keys from inventoryVisibleTile().
*/
adjustVisibleLevel: function(level, zoom, valid_tile_keys) {
// for tracking time of tile usage:
var now = new Date().getTime();

if (!level) {
// no tiles for this level yet
return;
}
// no tiles for this level yet
if (!level) return;

var scale = 1;
var theCoord = this.map.coordinate.copy();
Expand Down

0 comments on commit bbb4e51

Please sign in to comment.