From 0fad23970c40c8c4a135d2d800e1baa4a4f2bf13 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 21 Jan 2013 14:46:45 -0700 Subject: [PATCH] Disallowing mixed geometry collections for now --- src/ol/geom/geometrycollection.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ol/geom/geometrycollection.js b/src/ol/geom/geometrycollection.js index 419d9239b5..4ff6dd6372 100644 --- a/src/ol/geom/geometrycollection.js +++ b/src/ol/geom/geometrycollection.js @@ -7,8 +7,8 @@ goog.require('ol.geom.Geometry'); /** - * A mixed collection of geometries. This constructor is typically not called - * directly. Instead call @see ol.geom.GeometryCollection#fromGeometries. + * A collection of geometries. This constructor should not called. Instead + * create one of the fixed type collections. * @constructor * @implements {ol.geom.Geometry} */ @@ -57,14 +57,3 @@ ol.geom.GeometryCollection.prototype.getBounds = function() { } return this.bounds; }; - - -/** - * @param {Array.} components Array of geometries. - * @return {ol.geom.GeometryCollection} A mixed geometry collection. - */ -ol.geom.GeometryCollection.fromGeometries = function(components) { - var collection = new ol.geom.GeometryCollection(); - collection.components = components; - return collection; -};