diff --git a/src/ol/sphere/sphere.js b/src/ol/sphere/sphere.js index 7bbd2a4a3e..ccd65073cb 100644 --- a/src/ol/sphere/sphere.js +++ b/src/ol/sphere/sphere.js @@ -126,20 +126,6 @@ ol.Sphere.prototype.interpolate = function(c1, c2, fraction) { }; -/** - * Returns the maximum latitude of the great circle defined by bearing and - * latitude. - * - * @param {number} bearing Bearing. - * @param {number} latitude Latitude. - * @return {number} Maximum latitude. - */ -ol.Sphere.prototype.maximumLatitude = function(bearing, latitude) { - return Math.cos(Math.abs(Math.sin(goog.math.toRadians(bearing)) * - Math.cos(goog.math.toRadians(latitude)))); -}; - - /** * Returns the midpoint between c1 and c2. * diff --git a/test/spec/ol/sphere/sphere.test.js b/test/spec/ol/sphere/sphere.test.js index 7b97f870ec..16eb6665bc 100644 --- a/test/spec/ol/sphere/sphere.test.js +++ b/test/spec/ol/sphere/sphere.test.js @@ -1,5 +1,4 @@ // See http://www.movable-type.co.uk/scripts/latlong.html -// FIXME add tests for maximumLatitude // FIXME add tests for offset goog.provide('ol.test.Sphere');