From 13c5f5ac4c000a076ee629a66085a6621ffc9ee6 Mon Sep 17 00:00:00 2001 From: bartvde Date: Fri, 9 Oct 2009 09:55:04 +0000 Subject: [PATCH] clean up unused code in Format.WMC.v1, correct minor spelling mistake, non functional change, see ticket:2251 for details git-svn-id: http://svn.openlayers.org/trunk/openlayers@9736 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/WMC/v1.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/lib/OpenLayers/Format/WMC/v1.js b/lib/OpenLayers/Format/WMC/v1.js index d01ef6a387..edb346f88b 100644 --- a/lib/OpenLayers/Format/WMC/v1.js +++ b/lib/OpenLayers/Format/WMC/v1.js @@ -365,19 +365,6 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, { } }, - //FIXME: LatLonBoundingBox is not in spec - /** - * Method: read_wmc_LatLonBoundingBox - */ - //read_wmc_LatLonBoundingBox: function(layer, node) { - //layer.llbbox = [ - //parseFloat(node.getAttribute("minx")), - //parseFloat(node.getAttribute("miny")), - //parseFloat(node.getAttribute("maxx")), - //parseFloat(node.getAttribute("maxy")) - //]; - //}, - /** * Method: read_wmc_LegendURL */ @@ -769,7 +756,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, { sld.appendChild(link); // Name is required. sld.appendChild(this.createElementDefaultNS("Name", s.name)); - // Title is optionnal. + // Title is optional. if (s.title) { sld.appendChild(this.createElementDefaultNS("Title", s.title)); } @@ -786,7 +773,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, { sld.appendChild(imported); // Name is required. sld.appendChild(this.createElementDefaultNS("Name", s.name)); - // Title is optionnal. + // Title is optional. if (s.title) { sld.appendChild(this.createElementDefaultNS("Title", s.title)); } @@ -795,7 +782,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, { // both Name and Title are required. style.appendChild(this.createElementDefaultNS("Name", s.name)); style.appendChild(this.createElementDefaultNS("Title", s.title)); - // Abstract is optionnal + // Abstract is optional if (s['abstract']) { // abstract is a js keyword style.appendChild(this.createElementDefaultNS( "Abstract", s['abstract']