Remove unused ol.format.Polyline.decodeSignedInteger function

This commit is contained in:
Frederic Junod
2014-02-27 11:52:55 +01:00
parent b2b5e60f87
commit 11f718ab22
2 changed files with 11 additions and 23 deletions

View File

@@ -264,18 +264,6 @@ ol.format.Polyline.encodeSignedInteger = function(num) {
};
/**
* Decode one single signed integer from an encoded string
*
* @param {string} encoded An encoded string.
* @return {number} The decoded signed integer.
*/
ol.format.Polyline.decodeSignedInteger = function(encoded) {
var result = ol.format.Polyline.decodeUnsignedInteger(encoded);
return ((result & 1) ? ~(result >> 1) : (result >> 1));
};
/**
* Encode one single unsigned integer and return an encoded string
*