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:
Frédéric Junod
2011-09-17 19:20:40 +00:00
parent 501b42228a
commit 9264d57a3c
21 changed files with 2 additions and 104 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"
});

View File

@@ -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

View File

@@ -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"
});