From c15631ae3e8f5c08574798019f411c95b66ba44f Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 2 Dec 2011 23:57:39 +0100 Subject: [PATCH] Remove code that never gets called. OpenLayers.Map has no wrapDateLine property. --- lib/OpenLayers/Layer/Grid.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index be35eb26fe..7709510d31 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -658,10 +658,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { */ calculateGridLayout: function(bounds, origin, resolution) { bounds = bounds.clone(); - var map = this.map; - if (map.wrapDateLine) { - bounds = bounds.wrapDateLine(map.getMaxExtent()); - } var tilelon = resolution * this.tileSize.w; var tilelat = resolution * this.tileSize.h;