Remove gratuitous debug assertions
This commit is contained in:
@@ -222,8 +222,6 @@ ol.geom.Circle.prototype.setFlatCoordinates = function(layout, flatCoordinates)
|
||||
* @api
|
||||
*/
|
||||
ol.geom.Circle.prototype.setRadius = function(radius) {
|
||||
goog.DEBUG && console.assert(this.flatCoordinates,
|
||||
'truthy this.flatCoordinates expected');
|
||||
this.flatCoordinates[this.stride] = this.flatCoordinates[0] + radius;
|
||||
this.changed();
|
||||
};
|
||||
|
||||
@@ -16,8 +16,6 @@ ol.geom.flat.flip.flipXY = function(flatCoordinates, offset, end, stride, opt_de
|
||||
dest = opt_dest;
|
||||
destOffset = opt_destOffset !== undefined ? opt_destOffset : 0;
|
||||
} else {
|
||||
goog.DEBUG && console.assert(opt_destOffset === undefined,
|
||||
'opt_destOffSet should be defined');
|
||||
dest = [];
|
||||
destOffset = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user