remove unneeded destroy and initialize function. r=erilem (closes #3341)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -32,10 +32,6 @@ OpenLayers.Geometry.Curve = OpenLayers.Class(OpenLayers.Geometry.MultiPoint, {
|
||||
* Parameters:
|
||||
* point - {Array(<OpenLayers.Geometry.Point>)}
|
||||
*/
|
||||
initialize: function(points) {
|
||||
OpenLayers.Geometry.MultiPoint.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: getLength
|
||||
|
||||
@@ -26,9 +26,6 @@ OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, {
|
||||
* generate the linestring
|
||||
*
|
||||
*/
|
||||
initialize: function(points) {
|
||||
OpenLayers.Geometry.Curve.prototype.initialize.apply(this, arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: removeComponent
|
||||
|
||||
@@ -42,10 +42,6 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class(
|
||||
* Parameters:
|
||||
* points - {Array(<OpenLayers.Geometry.Point>)} points
|
||||
*/
|
||||
initialize: function(points) {
|
||||
OpenLayers.Geometry.LineString.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: addComponent
|
||||
|
||||
@@ -36,10 +36,6 @@ OpenLayers.Geometry.MultiLineString = OpenLayers.Class(
|
||||
* components - {Array(<OpenLayers.Geometry.LineString>)}
|
||||
*
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: split
|
||||
|
||||
@@ -38,10 +38,6 @@ OpenLayers.Geometry.MultiPoint = OpenLayers.Class(
|
||||
* Returns:
|
||||
* {<OpenLayers.Geometry.MultiPoint>}
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: addPoint
|
||||
|
||||
@@ -37,10 +37,6 @@ OpenLayers.Geometry.MultiPolygon = OpenLayers.Class(
|
||||
* used to generate the MultiPolygon
|
||||
*
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"
|
||||
});
|
||||
|
||||
@@ -37,11 +37,7 @@ OpenLayers.Geometry.Polygon = OpenLayers.Class(
|
||||
* Parameters:
|
||||
* components - {Array(<OpenLayers.Geometry.LinearRing>)}
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* APIMethod: getArea
|
||||
* Calculated by subtracting the areas of the internal holes from the
|
||||
|
||||
@@ -9,9 +9,5 @@
|
||||
|
||||
OpenLayers.Geometry.Surface = OpenLayers.Class(OpenLayers.Geometry, {
|
||||
|
||||
initialize: function() {
|
||||
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Geometry.Surface"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user