[core] Remove unused
This commit is contained in:
@@ -165,7 +165,6 @@ public:
|
||||
void removeAnnotations(const AnnotationIDs&);
|
||||
|
||||
AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&);
|
||||
LatLngBounds getBoundsForAnnotations(const AnnotationIDs&);
|
||||
|
||||
void addCustomLayer(const std::string& id,
|
||||
CustomLayerInitializeFunction,
|
||||
|
||||
@@ -71,20 +71,6 @@ AnnotationIDs AnnotationManager::getPointAnnotationsInBounds(const LatLngBounds&
|
||||
return result;
|
||||
}
|
||||
|
||||
LatLngBounds AnnotationManager::getBoundsForAnnotations(const AnnotationIDs& ids) const {
|
||||
LatLngBounds result = LatLngBounds::getExtendable();
|
||||
|
||||
for (const auto& id : ids) {
|
||||
if (pointAnnotations.find(id) != pointAnnotations.end()) {
|
||||
result.extend(pointAnnotations.at(id)->bounds());
|
||||
} else if (shapeAnnotations.find(id) != shapeAnnotations.end()) {
|
||||
result.extend(shapeAnnotations.at(id)->bounds());
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
std::unique_ptr<AnnotationTile> AnnotationManager::getTile(const TileID& tileID) {
|
||||
if (pointAnnotations.empty() && shapeAnnotations.empty())
|
||||
return nullptr;
|
||||
|
||||
@@ -31,7 +31,6 @@ public:
|
||||
void removeAnnotations(const AnnotationIDs&);
|
||||
|
||||
AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&) const;
|
||||
LatLngBounds getBoundsForAnnotations(const AnnotationIDs&) const;
|
||||
|
||||
void addIcon(const std::string& name, std::shared_ptr<const SpriteImage>);
|
||||
void removeIcon(const std::string& name);
|
||||
|
||||
@@ -25,8 +25,4 @@ void PointAnnotationImpl::updateLayer(const TileID& tileID, AnnotationTileLayer&
|
||||
featureProperties));
|
||||
}
|
||||
|
||||
LatLngBounds PointAnnotationImpl::bounds() const {
|
||||
return LatLngBounds(point.position, point.position);
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -43,7 +43,6 @@ public:
|
||||
|
||||
PointAnnotationImpl(const AnnotationID, const PointAnnotation&);
|
||||
|
||||
LatLngBounds bounds() const;
|
||||
void updateLayer(const TileID&, AnnotationTileLayer&) const;
|
||||
|
||||
const AnnotationID id;
|
||||
|
||||
@@ -147,16 +147,4 @@ void ShapeAnnotationImpl::updateTile(const TileID& tileID, AnnotationTile& tile)
|
||||
}
|
||||
}
|
||||
|
||||
LatLngBounds ShapeAnnotationImpl::bounds() const {
|
||||
LatLngBounds result;
|
||||
|
||||
for (const auto& segment : shape.segments) {
|
||||
for (const auto& point : segment) {
|
||||
result.extend(point);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -22,7 +22,6 @@ public:
|
||||
|
||||
ShapeAnnotationImpl(const AnnotationID, const ShapeAnnotation&, const uint8_t maxZoom);
|
||||
|
||||
LatLngBounds bounds() const;
|
||||
void updateStyle(Style&);
|
||||
void updateTile(const TileID&, AnnotationTile&);
|
||||
|
||||
|
||||
@@ -465,10 +465,6 @@ AnnotationIDs Map::getPointAnnotationsInBounds(const LatLngBounds& bounds) {
|
||||
return data->getAnnotationManager()->getPointAnnotationsInBounds(bounds);
|
||||
}
|
||||
|
||||
LatLngBounds Map::getBoundsForAnnotations(const AnnotationIDs& annotations) {
|
||||
return data->getAnnotationManager()->getBoundsForAnnotations(annotations);
|
||||
}
|
||||
|
||||
#pragma mark - Style API
|
||||
|
||||
void Map::addCustomLayer(const std::string& id,
|
||||
|
||||
Reference in New Issue
Block a user