add missing semicolon, remove global and unused variables, remove unreachable code

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10482 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2010-07-12 06:45:19 +00:00
parent afa7b9c2bb
commit d880d2d2b7
2 changed files with 3 additions and 4 deletions

View File

@@ -496,7 +496,6 @@ OpenLayers.Layer.Google.v2 = {
} catch (e) { } catch (e) {
throw(e); throw(e);
return;
} }
// cache elements for use by any other google layers added to // cache elements for use by any other google layers added to
// this same map // this same map

View File

@@ -56,7 +56,7 @@ OpenLayers.Layer.Google.v3 = {
if (!this.type) { if (!this.type) {
this.type = google.maps.MapTypeId.ROADMAP; this.type = google.maps.MapTypeId.ROADMAP;
} }
var mapObject, termsOfUse, poweredBy; var mapObject;
var cache = OpenLayers.Layer.Google.cache[this.map.id]; var cache = OpenLayers.Layer.Google.cache[this.map.id];
if (cache) { if (cache) {
// there are already Google layers added to this map // there are already Google layers added to this map
@@ -128,7 +128,7 @@ OpenLayers.Layer.Google.v3 = {
} }
var cache = OpenLayers.Layer.Google.cache[this.map.id]; var cache = OpenLayers.Layer.Google.cache[this.map.id];
var container = this.map.viewPortDiv var container = this.map.viewPortDiv;
// move the ToS and branding stuff up to the container div // move the ToS and branding stuff up to the container div
var termsOfUse = div.lastChild; var termsOfUse = div.lastChild;
@@ -305,7 +305,7 @@ OpenLayers.Layer.Google.v3 = {
var lat = this.getLatitudeFromMapObjectLonLat(moLonLat); var lat = this.getLatitudeFromMapObjectLonLat(moLonLat);
var res = this.map.getResolution(); var res = this.map.getResolution();
var extent = this.map.getExtent(); var extent = this.map.getExtent();
px = new OpenLayers.Pixel( var px = new OpenLayers.Pixel(
(1/res * (lon - extent.left)), (1/res * (lon - extent.left)),
(1/res * (extent.top - lat)) (1/res * (extent.top - lat))
); );