From 315bbcdef30dcedb57960746dd25f8bded547297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Mon, 7 Mar 2011 09:25:17 +0000 Subject: [PATCH] remove 'empty' initialize method (method that only call the parent class). r=bartvde (closes #3147) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11640 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/Atom.js | 12 ------------ lib/OpenLayers/Format/Filter.js | 12 ------------ lib/OpenLayers/Format/GeoJSON.js | 12 ------------ lib/OpenLayers/Format/GeoRSS.js | 12 ------------ lib/OpenLayers/Format/JSON.js | 12 ------------ lib/OpenLayers/Format/SLD.js | 12 ------------ lib/OpenLayers/Format/SOSCapabilities.js | 13 ------------- lib/OpenLayers/Format/SOSGetFeatureOfInterest.js | 11 ----------- lib/OpenLayers/Format/SOSGetObservation.js | 11 ----------- lib/OpenLayers/Format/WFSCapabilities.js | 15 +-------------- lib/OpenLayers/Format/WFSDescribeFeatureType.js | 16 ++-------------- lib/OpenLayers/Format/WMSCapabilities.js | 15 +-------------- lib/OpenLayers/Format/WMSDescribeLayer.js | 13 ------------- lib/OpenLayers/Format/WMSGetFeatureInfo.js | 14 -------------- lib/OpenLayers/Format/WMTSCapabilities.js | 13 ------------- 15 files changed, 4 insertions(+), 189 deletions(-) diff --git a/lib/OpenLayers/Format/Atom.js b/lib/OpenLayers/Format/Atom.js index d26ab1e602..5c26a2d7bb 100644 --- a/lib/OpenLayers/Format/Atom.js +++ b/lib/OpenLayers/Format/Atom.js @@ -59,18 +59,6 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, { */ xy: false, - /** - * Constructor: OpenLayers.Format.AtomEntry - * Create a new parser for Atom. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - /** * APIMethod: read * Return a list of features from an Atom feed or entry document. diff --git a/lib/OpenLayers/Format/Filter.js b/lib/OpenLayers/Format/Filter.js index bda8b63584..cffbcd7cec 100644 --- a/lib/OpenLayers/Format/Filter.js +++ b/lib/OpenLayers/Format/Filter.js @@ -39,18 +39,6 @@ OpenLayers.Format.Filter = OpenLayers.Class(OpenLayers.Format.XML, { */ parser: null, - /** - * Constructor: OpenLayers.Format.Filter - * Create a new parser for Filter. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - /** * APIMethod: write * Write an ogc:Filter given a filter object. diff --git a/lib/OpenLayers/Format/GeoJSON.js b/lib/OpenLayers/Format/GeoJSON.js index cf29c14325..9642348cbc 100644 --- a/lib/OpenLayers/Format/GeoJSON.js +++ b/lib/OpenLayers/Format/GeoJSON.js @@ -32,18 +32,6 @@ OpenLayers.Format.GeoJSON = OpenLayers.Class(OpenLayers.Format.JSON, { */ ignoreExtraDims: false, - /** - * Constructor: OpenLayers.Format.GeoJSON - * Create a new parser for GeoJSON. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.JSON.prototype.initialize.apply(this, [options]); - }, - /** * APIMethod: read * Deserialize a GeoJSON string. diff --git a/lib/OpenLayers/Format/GeoRSS.js b/lib/OpenLayers/Format/GeoRSS.js index 44a71a9337..2e8522d53f 100644 --- a/lib/OpenLayers/Format/GeoRSS.js +++ b/lib/OpenLayers/Format/GeoRSS.js @@ -75,18 +75,6 @@ OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, { */ xy: false, - /** - * Constructor: OpenLayers.Format.GeoRSS - * Create a new parser for GeoRSS. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - /** * Method: createGeometryFromItem * Return a geometry from a GeoRSS Item. diff --git a/lib/OpenLayers/Format/JSON.js b/lib/OpenLayers/Format/JSON.js index d0626f94db..22ff1839dd 100644 --- a/lib/OpenLayers/Format/JSON.js +++ b/lib/OpenLayers/Format/JSON.js @@ -67,18 +67,6 @@ OpenLayers.Format.JSON = OpenLayers.Class(OpenLayers.Format, { return !!(window.JSON && typeof JSON.parse == "function" && typeof JSON.stringify == "function"); })(), - /** - * Constructor: OpenLayers.Format.JSON - * Create a new parser for JSON. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.prototype.initialize.apply(this, [options]); - }, - /** * APIMethod: read * Deserialize a json string. diff --git a/lib/OpenLayers/Format/SLD.js b/lib/OpenLayers/Format/SLD.js index 471d023c95..0dde7e6f91 100644 --- a/lib/OpenLayers/Format/SLD.js +++ b/lib/OpenLayers/Format/SLD.js @@ -50,18 +50,6 @@ OpenLayers.Format.SLD = OpenLayers.Class(OpenLayers.Format.XML, { */ parser: null, - /** - * Constructor: OpenLayers.Format.SLD - * Create a new parser for SLD. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - /** * APIMethod: write * Write a SLD document given a list of styles. diff --git a/lib/OpenLayers/Format/SOSCapabilities.js b/lib/OpenLayers/Format/SOSCapabilities.js index a2367afd33..73274bd84e 100644 --- a/lib/OpenLayers/Format/SOSCapabilities.js +++ b/lib/OpenLayers/Format/SOSCapabilities.js @@ -34,19 +34,6 @@ OpenLayers.Format.SOSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { */ parser: null, - /** - * Constructor: OpenLayers.Format.SOSCapabilities - * Create a new parser for SOS capabilities. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - this.options = options; - }, - /** * APIMethod: read * Read capabilities data from a string, and return information about diff --git a/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js b/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js index 212593c82f..9ef9e85037 100644 --- a/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js +++ b/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js @@ -59,17 +59,6 @@ OpenLayers.Format.SOSGetFeatureOfInterest = OpenLayers.Class( trimComma: (/\s*,\s*/g) }, - /** - * Constructor: OpenLayers.Format.SOSGetFeatureOfInterest - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - /** * APIMethod: read * Parse a GetFeatureOfInterest response and return an array of features diff --git a/lib/OpenLayers/Format/SOSGetObservation.js b/lib/OpenLayers/Format/SOSGetObservation.js index 62380f3971..8c5d8544b1 100644 --- a/lib/OpenLayers/Format/SOSGetObservation.js +++ b/lib/OpenLayers/Format/SOSGetObservation.js @@ -61,17 +61,6 @@ OpenLayers.Format.SOSGetObservation = OpenLayers.Class(OpenLayers.Format.XML, { */ defaultPrefix: "sos", - /** - * Constructor: OpenLayers.Format.SOSGetObservation - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - /** * Method: read * diff --git a/lib/OpenLayers/Format/WFSCapabilities.js b/lib/OpenLayers/Format/WFSCapabilities.js index d42a25d0b7..37e1f4210a 100644 --- a/lib/OpenLayers/Format/WFSCapabilities.js +++ b/lib/OpenLayers/Format/WFSCapabilities.js @@ -28,19 +28,6 @@ OpenLayers.Format.WFSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { */ version: null, - /** - * Constructor: OpenLayers.Format.WFSCapabilities - * Create a new parser for WFS capabilities. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - this.options = options; - }, - /** * APIMethod: read * Read capabilities data from a string, and return a list of layers. @@ -77,4 +64,4 @@ OpenLayers.Format.WFSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { CLASS_NAME: "OpenLayers.Format.WFSCapabilities" -}); \ No newline at end of file +}); diff --git a/lib/OpenLayers/Format/WFSDescribeFeatureType.js b/lib/OpenLayers/Format/WFSDescribeFeatureType.js index 778c4791d3..ee08887867 100644 --- a/lib/OpenLayers/Format/WFSDescribeFeatureType.js +++ b/lib/OpenLayers/Format/WFSDescribeFeatureType.js @@ -22,19 +22,7 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class( namespaces: { xsd: "http://www.w3.org/2001/XMLSchema" }, - - /** - * Constructor: OpenLayers.Format.WFSDescribeFeatureType - * Create a new parser for WFS DescribeFeatureType responses. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - }, - + /** * Property: readers * Contains public functions, grouped by namespace prefix, that will @@ -195,4 +183,4 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class( CLASS_NAME: "OpenLayers.Format.WFSDescribeFeatureType" -}); \ No newline at end of file +}); diff --git a/lib/OpenLayers/Format/WMSCapabilities.js b/lib/OpenLayers/Format/WMSCapabilities.js index 49396b73a8..d775ec07d7 100644 --- a/lib/OpenLayers/Format/WMSCapabilities.js +++ b/lib/OpenLayers/Format/WMSCapabilities.js @@ -43,19 +43,6 @@ OpenLayers.Format.WMSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { */ parser: null, - /** - * Constructor: OpenLayers.Format.WMSCapabilities - * Create a new parser for WMS capabilities. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - this.options = options; - }, - /** * APIMethod: read * Read capabilities data from a string, and return a list of layers. @@ -90,4 +77,4 @@ OpenLayers.Format.WMSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { CLASS_NAME: "OpenLayers.Format.WMSCapabilities" -}); \ No newline at end of file +}); diff --git a/lib/OpenLayers/Format/WMSDescribeLayer.js b/lib/OpenLayers/Format/WMSDescribeLayer.js index cf949820d2..21f39e5e19 100644 --- a/lib/OpenLayers/Format/WMSDescribeLayer.js +++ b/lib/OpenLayers/Format/WMSDescribeLayer.js @@ -29,19 +29,6 @@ OpenLayers.Format.WMSDescribeLayer = OpenLayers.Class(OpenLayers.Format.XML, { */ version: null, - /** - * Constructor: OpenLayers.Format.WMSDescribeLayer - * Create a new parser for WMS DescribeLayer responses. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - this.options = options; - }, - /** * APIMethod: read * Read DescribeLayer data from a string, and return the response. diff --git a/lib/OpenLayers/Format/WMSGetFeatureInfo.js b/lib/OpenLayers/Format/WMSGetFeatureInfo.js index 15a842796b..804c0c3414 100644 --- a/lib/OpenLayers/Format/WMSGetFeatureInfo.js +++ b/lib/OpenLayers/Format/WMSGetFeatureInfo.js @@ -48,20 +48,6 @@ OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, { */ gmlFormat: null, - /** - * Constructor: OpenLayers.Format.WMSGetFeatureInfo - * Create a new parser for WMS GetFeatureInfo responses - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, arguments); - OpenLayers.Util.extend(this, options); - this.options = options; - }, - /** * APIMethod: read * Read WMS GetFeatureInfo data from a string, and return an array of features diff --git a/lib/OpenLayers/Format/WMTSCapabilities.js b/lib/OpenLayers/Format/WMTSCapabilities.js index bf9e62686f..91861bcdf8 100644 --- a/lib/OpenLayers/Format/WMTSCapabilities.js +++ b/lib/OpenLayers/Format/WMTSCapabilities.js @@ -47,19 +47,6 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { "urn:ogc:def:crs:EPSG::4326": true }, - /** - * Constructor: OpenLayers.Format.WMTSCapabilities - * Create a new parser for WMTS capabilities. - * - * Parameters: - * options - {Object} An optional object whose properties will be set on - * this instance. - */ - initialize: function(options) { - OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); - this.options = options; - }, - /** * APIMethod: read * Read capabilities data from a string, and return information about