[core] Remove unused

This commit is contained in:
John Firebaugh
2016-02-02 18:04:25 -08:00
parent 8e9510d2b4
commit 82d67d6912
3 changed files with 0 additions and 21 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -398,14 +398,6 @@ NorthOrientation Map::getNorthOrientation() const {
#pragma mark - Projection
MetersBounds Map::getWorldBoundsMeters() const {
return Projection::getWorldBoundsMeters();
}
LatLngBounds Map::getWorldBoundsLatLng() const {
return Projection::getWorldBoundsLatLng();
}
double Map::getMetersPerPixelAtLatitude(double lat, double zoom) const {
return Projection::getMetersPerPixelAtLatitude(lat, zoom);
}