[core] Remove unused
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user