diff --git a/src/ol/source/vectorsource.js b/src/ol/source/vectorsource.js index 2303f735a3..0d5d91a45f 100644 --- a/src/ol/source/vectorsource.js +++ b/src/ol/source/vectorsource.js @@ -304,16 +304,6 @@ ol.source.Vector.prototype.handleIntentChange_ = function(evt) { }; -/** - * Remove all features from the layer. - */ -ol.source.Vector.prototype.clear = function() { - this.featureCache_.clear(); - this.dispatchEvent( - new ol.source.VectorEvent(ol.source.VectorEventType.REMOVE, [], [])); -}; - - /** * @param {ol.Extent} extent Extent that needs to be fetched. * @param {ol.proj.Projection} projection Projection of the view.