Remove gratuitous debug assertions

This commit is contained in:
Andreas Hocevar
2016-08-04 11:01:40 +02:00
parent e0015b3d4e
commit e18d41b5e0
38 changed files with 12 additions and 102 deletions

View File

@@ -841,7 +841,6 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) {
this.setGeometryCoordinates_(geometry, coordinates);
var rTree = this.rBush_;
goog.DEBUG && console.assert(segment !== undefined, 'segment should be defined');
rTree.remove(segmentData);
this.updateSegmentIndices_(geometry, index, depth, 1);
var newSegmentData = /** @type {ol.ModifySegmentDataType} */ ({