Merge pull request #6339 from fredj/cleanup

Code cleanup
This commit is contained in:
Frédéric Junod
2017-01-10 10:34:04 +01:00
committed by GitHub
7 changed files with 4 additions and 23 deletions
-1
View File
@@ -28,7 +28,6 @@
], ],
"jscomp_off": [ "jscomp_off": [
"lintChecks", "lintChecks",
"analyzerChecks",
"missingProvide", "missingProvide",
"unknownDefines" "unknownDefines"
], ],
+1 -2
View File
@@ -27,8 +27,7 @@
"*" "*"
], ],
"jscomp_off": [ "jscomp_off": [
"lintChecks", "lintChecks"
"analyzerChecks"
], ],
"extra_annotation_name": [ "extra_annotation_name": [
"api", "observable" "api", "observable"
+1 -2
View File
@@ -18,8 +18,7 @@
"*" "*"
], ],
"jscomp_off": [ "jscomp_off": [
"lintChecks", "lintChecks"
"analyzerChecks"
], ],
"extra_annotation_name": [ "extra_annotation_name": [
"api", "observable" "api", "observable"
+1 -2
View File
@@ -230,8 +230,7 @@ Here is a version of `config.json` with more compilation checks enabled:
], ],
"jscomp_off": [ "jscomp_off": [
"unknownDefines", "unknownDefines",
"lintChecks", "lintChecks"
"analyzerChecks"
], ],
"extra_annotation_name": [ "extra_annotation_name": [
"api", "observable" "api", "observable"
-9
View File
@@ -103,15 +103,6 @@ ol.Kinetic.prototype.end = function() {
}; };
/**
* @private
* @return {number} Duration of animation (milliseconds).
*/
ol.Kinetic.prototype.getDuration_ = function() {
return Math.log(this.minVelocity_ / this.initialVelocity_) / this.decay_;
};
/** /**
* @return {number} Total distance travelled (pixels). * @return {number} Total distance travelled (pixels).
*/ */
-6
View File
@@ -52,12 +52,6 @@ ol.renderer.canvas.TileLayer = function(tileLayer) {
*/ */
this.tmpExtent = ol.extent.createEmpty(); this.tmpExtent = ol.extent.createEmpty();
/**
* @private
* @type {ol.TileCoord}
*/
this.tmpTileCoord_ = [0, 0, 0];
/** /**
* @private * @private
* @type {ol.TileRange} * @type {ol.TileRange}
+1 -1
View File
@@ -217,7 +217,7 @@ ol.View.prototype.animate = function(var_args) {
} }
var series = []; var series = [];
for (var i = 0; i < animationCount; ++i) { for (var i = 0; i < animationCount; ++i) {
var options = /** @type olx.AnimationOptions */ (arguments[i]); var options = /** @type {olx.AnimationOptions} */ (arguments[i]);
var animation = /** @type {ol.ViewAnimation} */ ({ var animation = /** @type {ol.ViewAnimation} */ ({
start: start, start: start,