Remove unused ol.format.Polyline.encodeFloat function

This commit is contained in:
Frederic Junod
2014-02-27 11:58:11 +01:00
parent 11f718ab22
commit 040b954e15
2 changed files with 13 additions and 28 deletions

View File

@@ -237,21 +237,6 @@ ol.format.Polyline.decodeUnsignedIntegers = function(encoded) {
};
/**
* Encode one single floating point number and return an encoded string
*
* @param {number} num Floating point number that should be encoded.
* @param {number=} opt_factor The factor by which num will be multiplied.
* The remaining decimal places will get rounded away.
* @return {string} The encoded string.
*/
ol.format.Polyline.encodeFloat = function(num, opt_factor) {
var factor = goog.isDef(opt_factor) ? opt_factor : 1e5;
num = Math.round(num * factor);
return ol.format.Polyline.encodeSignedInteger(num);
};
/**
* Encode one single signed integer and return an encoded string
*