Remove unused ol.format.Polyline.decodeFloat function

This commit is contained in:
Frederic Junod
2014-02-27 11:48:02 +01:00
parent 6ad63b113d
commit b2b5e60f87
2 changed files with 13 additions and 27 deletions

View File

@@ -252,20 +252,6 @@ ol.format.Polyline.encodeFloat = function(num, opt_factor) {
};
/**
* Decode one single floating point number from an encoded string
*
* @param {string} encoded An encoded string.
* @param {number=} opt_factor The factor by which the result will be divided.
* @return {number} The decoded floating point number.
*/
ol.format.Polyline.decodeFloat = function(encoded, opt_factor) {
var factor = goog.isDef(opt_factor) ? opt_factor : 1e5;
var result = ol.format.Polyline.decodeSignedInteger(encoded);
return result / factor;
};
/**
* Encode one single signed integer and return an encoded string
*