Skip to content

Commit

Permalink
Remove unused createContinuous function
Browse files Browse the repository at this point in the history
  • Loading branch information
elemoine committed Jul 4, 2013
1 parent 0cf4024 commit 552853a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/ol/resolutionconstraint.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,6 @@ goog.require('ol.array');
ol.ResolutionConstraintType;


/**
* @param {number} power Power.
* @param {number} maxResolution Maximum resolution.
* @param {number=} opt_minResolution Minimum resolution.
* @return {ol.ResolutionConstraintType} Zoom function.
*/
ol.ResolutionConstraint.createContinuous =
function(power, maxResolution, opt_minResolution) {
var minResolution = opt_minResolution || 0;
return (
/**
* @param {number|undefined} resolution Resolution.
* @param {number} delta Delta.
* @param {number} direction Direction.
* @return {number|undefined} Resolution.
*/
function(resolution, delta, direction) {
if (goog.isDef(resolution)) {
resolution /= Math.pow(power, delta);
return goog.math.clamp(resolution, minResolution, maxResolution);
} else {
return undefined;
}
});
};


/**
* @param {Array.<number>} resolutions Resolutions.
* @return {ol.ResolutionConstraintType} Zoom function.
Expand Down

0 comments on commit 552853a

Please sign in to comment.