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
This commit is contained in:
Frédéric Junod
2011-03-07 09:25:17 +00:00
parent 1b3404f1f9
commit 315bbcdef3
15 changed files with 4 additions and 189 deletions
-12
View File
@@ -59,18 +59,6 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
xy: false, 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 * APIMethod: read
* Return a list of features from an Atom feed or entry document. * Return a list of features from an Atom feed or entry document.
-12
View File
@@ -39,18 +39,6 @@ OpenLayers.Format.Filter = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
parser: null, 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 * APIMethod: write
* Write an ogc:Filter given a filter object. * Write an ogc:Filter given a filter object.
-12
View File
@@ -32,18 +32,6 @@ OpenLayers.Format.GeoJSON = OpenLayers.Class(OpenLayers.Format.JSON, {
*/ */
ignoreExtraDims: false, 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 * APIMethod: read
* Deserialize a GeoJSON string. * Deserialize a GeoJSON string.
-12
View File
@@ -75,18 +75,6 @@ OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
xy: false, 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 * Method: createGeometryFromItem
* Return a geometry from a GeoRSS Item. * Return a geometry from a GeoRSS Item.
-12
View File
@@ -67,18 +67,6 @@ OpenLayers.Format.JSON = OpenLayers.Class(OpenLayers.Format, {
return !!(window.JSON && typeof JSON.parse == "function" && typeof JSON.stringify == "function"); 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 * APIMethod: read
* Deserialize a json string. * Deserialize a json string.
-12
View File
@@ -50,18 +50,6 @@ OpenLayers.Format.SLD = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
parser: null, 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 * APIMethod: write
* Write a SLD document given a list of styles. * Write a SLD document given a list of styles.
-13
View File
@@ -34,19 +34,6 @@ OpenLayers.Format.SOSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
parser: null, 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 * APIMethod: read
* Read capabilities data from a string, and return information about * Read capabilities data from a string, and return information about
@@ -59,17 +59,6 @@ OpenLayers.Format.SOSGetFeatureOfInterest = OpenLayers.Class(
trimComma: (/\s*,\s*/g) 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 * APIMethod: read
* Parse a GetFeatureOfInterest response and return an array of features * Parse a GetFeatureOfInterest response and return an array of features
@@ -61,17 +61,6 @@ OpenLayers.Format.SOSGetObservation = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
defaultPrefix: "sos", 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 * Method: read
* *
+1 -14
View File
@@ -28,19 +28,6 @@ OpenLayers.Format.WFSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
version: null, 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 * APIMethod: read
* Read capabilities data from a string, and return a list of layers. * 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" CLASS_NAME: "OpenLayers.Format.WFSCapabilities"
}); });
@@ -22,19 +22,7 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(
namespaces: { namespaces: {
xsd: "http://www.w3.org/2001/XMLSchema" 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 * Property: readers
* Contains public functions, grouped by namespace prefix, that will * Contains public functions, grouped by namespace prefix, that will
@@ -195,4 +183,4 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(
CLASS_NAME: "OpenLayers.Format.WFSDescribeFeatureType" CLASS_NAME: "OpenLayers.Format.WFSDescribeFeatureType"
}); });
+1 -14
View File
@@ -43,19 +43,6 @@ OpenLayers.Format.WMSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
parser: null, 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 * APIMethod: read
* Read capabilities data from a string, and return a list of layers. * 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" CLASS_NAME: "OpenLayers.Format.WMSCapabilities"
}); });
-13
View File
@@ -29,19 +29,6 @@ OpenLayers.Format.WMSDescribeLayer = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
version: null, 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 * APIMethod: read
* Read DescribeLayer data from a string, and return the response. * Read DescribeLayer data from a string, and return the response.
@@ -48,20 +48,6 @@ OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, {
*/ */
gmlFormat: null, 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 * APIMethod: read
* Read WMS GetFeatureInfo data from a string, and return an array of features * Read WMS GetFeatureInfo data from a string, and return an array of features
-13
View File
@@ -47,19 +47,6 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, {
"urn:ogc:def:crs:EPSG::4326": true "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 * APIMethod: read
* Read capabilities data from a string, and return information about * Read capabilities data from a string, and return information about