Remove unnecessary and misleading assertion

This commit is contained in:
Andreas Hocevar
2016-10-13 11:54:32 +02:00
parent 043a8ab1db
commit 58d459bca0

View File

@@ -1,10 +1,8 @@
goog.provide('ol.interaction.Select');
goog.require('ol');
goog.require('ol.asserts');
goog.require('ol.functions');
goog.require('ol.Collection');
goog.require('ol.Feature');
goog.require('ol.array');
goog.require('ol.events');
goog.require('ol.events.Event');
@@ -172,8 +170,6 @@ ol.interaction.Select.prototype.getFeatures = function() {
* @api
*/
ol.interaction.Select.prototype.getLayer = function(feature) {
ol.asserts.assert(feature instanceof ol.Feature,
42); // Expected an `ol.Feature`, but got an `ol.RenderFeature`
var key = ol.getUid(feature);
return /** @type {ol.layer.Vector} */ (this.featureLayerAssociation_[key]);
};