From fe9aa59b91d66807dd8c45c3da2f548322a867ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Fri, 19 Mar 2010 13:34:45 +0000 Subject: [PATCH] remove unused mapRect variable, add missing semicolons, non-functional change git-svn-id: http://svn.openlayers.org/trunk/openlayers@10128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/Graticule.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Control/Graticule.js b/lib/OpenLayers/Control/Graticule.js index b36b2ec509..1020bce5cb 100644 --- a/lib/OpenLayers/Control/Graticule.js +++ b/lib/OpenLayers/Control/Graticule.js @@ -155,7 +155,6 @@ OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, { if (!mapBounds) { return; } - var mapRect = mapBounds.toGeometry(); //clear out the old grid this.gratLayer.destroyFeatures(); @@ -210,7 +209,7 @@ OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, { * goes from the center in both directions to the edge. */ //get the central longitude line, increment the latitude - var iter = 0 + var iter = 0; var centerLonPoints = [mapCenterLL.clone()]; var newPoint = mapCenterLL.clone(); var mapXY; @@ -227,7 +226,7 @@ OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, { } while (mapBounds.containsPixel(mapXY) && ++iter<1000); //get the central latitude line, increment the longitude - iter = 0 + iter = 0; var centerLatPoints = [mapCenterLL.clone()]; newPoint = mapCenterLL.clone(); do {