Remove ol.DEBUG

This commit is contained in:
Tim Schaub
2016-12-29 09:09:24 -07:00
parent 7b9690a691
commit 137cdc04c8
128 changed files with 309 additions and 2027 deletions
-9
View File
@@ -17,12 +17,6 @@ goog.require('ol.tilegrid.TileGrid');
* @api
*/
ol.tilegrid.WMTS = function(options) {
ol.DEBUG && console.assert(
options.resolutions.length == options.matrixIds.length,
'options resolutions and matrixIds must have equal length (%s == %s)',
options.resolutions.length, options.matrixIds.length);
/**
* @private
* @type {!Array.<string>}
@@ -39,7 +33,6 @@ ol.tilegrid.WMTS = function(options) {
tileSizes: options.tileSizes,
sizes: options.sizes
});
};
ol.inherits(ol.tilegrid.WMTS, ol.tilegrid.TileGrid);
@@ -49,8 +42,6 @@ ol.inherits(ol.tilegrid.WMTS, ol.tilegrid.TileGrid);
* @return {string} MatrixId..
*/
ol.tilegrid.WMTS.prototype.getMatrixId = function(z) {
ol.DEBUG && console.assert(0 <= z && z < this.matrixIds_.length,
'attempted to retrieve matrixId for illegal z (%s)', z);
return this.matrixIds_[z];
};