[OpenLayers-Commits] r2354 - in sandbox/vector-2.4/lib: . OpenLayers/Geometry

commits at openlayers.org commits at openlayers.org
Mon Mar 5 18:28:19 EST 2007


Author: sderle
Date: 2007-03-05 18:28:18 -0500 (Mon, 05 Mar 2007)
New Revision: 2354

Removed:
   sandbox/vector-2.4/lib/OpenLayers/Geometry/LineSegment.js
Modified:
   sandbox/vector-2.4/lib/OpenLayers.js
Log:
Remove LineSegment.js as it seems redundant with LineString.

Deleted: sandbox/vector-2.4/lib/OpenLayers/Geometry/LineSegment.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Geometry/LineSegment.js	2007-03-05 23:25:34 UTC (rev 2353)
+++ sandbox/vector-2.4/lib/OpenLayers/Geometry/LineSegment.js	2007-03-05 23:28:18 UTC (rev 2354)
@@ -1,37 +0,0 @@
-/* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license.
- * See http://svn.openlayers.org/trunk/openlayers/repository-license.txt 
- * for the full text of the license. */
-
-/**
- * @class
- *
- * @requires OpenLayers/Geometry/LineString.js
- */
-OpenLayers.Geometry.LineSegment = OpenLayers.Class.create();
-OpenLayers.Geometry.LineSegment.prototype =
-    OpenLayers.Class.inherit(OpenLayers.Geometry.LineString, {
-
-    /**
-    * @constructor
-    *
-    * @param {OpenLayers.Geometry.Point} point
-    * @param {OpenLayers.Geometry.Point} point
-    */
-    initialize: function(point1, point2) {
-        this.path = [];
-        if (point1 && point2) {
-            arguments = [[point1, point2]];
-            OpenLayers.Geometry.LineString.prototype.initialize.apply(this, arguments);
-        }
-    },
-    
-    /**
-     * @returns a clone of the current object
-     */    
-    clone:function() {
-        return new OpenLayers.Geometry.LineSegment(this.path); 
-    },
-
-    /** @final @type String */
-    CLASS_NAME: "OpenLayers.Geometry.LineSegment"
-});

Modified: sandbox/vector-2.4/lib/OpenLayers.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers.js	2007-03-05 23:25:34 UTC (rev 2353)
+++ sandbox/vector-2.4/lib/OpenLayers.js	2007-03-05 23:28:18 UTC (rev 2354)
@@ -107,7 +107,6 @@
         "OpenLayers/Geometry/Point.js",
         "OpenLayers/Geometry/Curve.js",
         "OpenLayers/Geometry/LineString.js",
-        "OpenLayers/Geometry/LineSegment.js",
         "OpenLayers/Geometry/LinearRing.js",        
         "OpenLayers/Geometry/Surface.js",
         "OpenLayers/Geometry/Polygon.js",



More information about the Commits mailing list