summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-02 18:04:25 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-02 18:53:37 -0800
commit82d67d6912008f179054c8e2e74a84d2cd62d31c (patch)
treeb44089188293a260cde0afe88df8a211c4ba790f /include/mbgl
parent8e9510d2b4180fef50b7dd2e90b98143721ae414 (diff)
downloadqtlocation-mapboxgl-82d67d6912008f179054c8e2e74a84d2cd62d31c.tar.gz
[core] Remove unused
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/map/map.hpp3
-rw-r--r--include/mbgl/util/projection.hpp10
2 files changed, 0 insertions, 13 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 5b89bf4a91..b9aa0c1381 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -144,9 +144,6 @@ public:
uint16_t getHeight() const;
// Projection
- MetersBounds getWorldBoundsMeters() const;
- LatLngBounds getWorldBoundsLatLng() const;
-
double getMetersPerPixelAtLatitude(double lat, double zoom) const;
ProjectedMeters projectedMetersForLatLng(const LatLng&) const;
LatLng latLngForProjectedMeters(const ProjectedMeters&) const;
diff --git a/include/mbgl/util/projection.hpp b/include/mbgl/util/projection.hpp
index f067db2e1f..bee5eac8ae 100644
--- a/include/mbgl/util/projection.hpp
+++ b/include/mbgl/util/projection.hpp
@@ -11,16 +11,6 @@ namespace mbgl {
class Projection {
public:
- static inline MetersBounds getWorldBoundsMeters() {
- const double d = util::EARTH_RADIUS_M * M_PI;
- return { { -d, -d }, { d, d } };
- }
-
- static inline LatLngBounds getWorldBoundsLatLng() {
- MetersBounds bounds = getWorldBoundsMeters();
- return { latLngForProjectedMeters(bounds.sw), latLngForProjectedMeters(bounds.ne) };
- }
-
static inline double getMetersPerPixelAtLatitude(double lat, double zoom) {
const double mapPixelWidthAtZoom = std::pow(2.0, zoom) * util::tileSize;
const double constrainedLatitude = ::fmin(::fmax(lat, -util::LATITUDE_MAX), util::LATITUDE_MAX);