From 01da26b1c4f857c33b32312dfabbb43d868fba18 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 6 Nov 2016 07:56:53 -0700 Subject: [PATCH] Unused kinetic.pan() method --- src/ol/kinetic.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/ol/kinetic.js b/src/ol/kinetic.js index e5cbdca658..65adb7a583 100644 --- a/src/ol/kinetic.js +++ b/src/ol/kinetic.js @@ -1,7 +1,5 @@ goog.provide('ol.Kinetic'); -goog.require('ol.animation'); - /** * @classdesc @@ -105,32 +103,6 @@ ol.Kinetic.prototype.end = function() { }; -/** - * @param {ol.Coordinate} source Source coordinate for the animation. - * @return {ol.PreRenderFunction} Pre-render function for kinetic animation. - */ -ol.Kinetic.prototype.pan = function(source) { - var decay = this.decay_; - var initialVelocity = this.initialVelocity_; - var velocity = this.minVelocity_ - initialVelocity; - var duration = this.getDuration_(); - var easingFunction = ( - /** - * @param {number} t T. - * @return {number} Easing. - */ - function(t) { - return initialVelocity * (Math.exp((decay * t) * duration) - 1) / - velocity; - }); - return ol.animation.pan({ - source: source, - duration: duration, - easing: easingFunction - }); -}; - - /** * @private * @return {number} Duration of animation (milliseconds).