From 5e33afd361d6541804f208ddfd6ed66ee049e5a5 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Mon, 28 Nov 2011 00:20:41 +0800 Subject: [PATCH] Removed redundant declaration. --- web/js/dynmaputils.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/web/js/dynmaputils.js b/web/js/dynmaputils.js index c07f782f..44145a04 100644 --- a/web/js/dynmaputils.js +++ b/web/js/dynmaputils.js @@ -183,27 +183,6 @@ var DynmapTileLayer = L.TileLayer.extend({ next.loadSrc(); }, - _removeOtherTiles: function(bounds) { - var kArr, x, y, key; - - for (key in this._tiles) { - if (this._tiles.hasOwnProperty(key)) { - kArr = key.split(':'); - x = parseInt(kArr[0], 10); - y = parseInt(kArr[1], 10); - - // remove tile if it's out of bounds - if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) { - var tile = this._tiles[key]; - if (tile.parentNode === this._container) { - this._container.removeChild(this._tiles[key]); - } - delete this._namedTiles[tile.tileName]; - delete this._tiles[key]; - } - } - } - }, _removeOtherTiles: function(bounds) { var kArr, x, y, key, tile;