[core] Remove unused

This commit is contained in:
John Firebaugh
2016-02-02 20:20:47 -08:00
parent b78bc7c555
commit 032c8fba3c
8 changed files with 0 additions and 38 deletions

View File

@@ -165,7 +165,6 @@ public:
void removeAnnotations(const AnnotationIDs&);
AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&);
LatLngBounds getBoundsForAnnotations(const AnnotationIDs&);
void addCustomLayer(const std::string& id,
CustomLayerInitializeFunction,

View File

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

View File

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

View File

@@ -25,8 +25,4 @@ void PointAnnotationImpl::updateLayer(const TileID& tileID, AnnotationTileLayer&
featureProperties));
}
LatLngBounds PointAnnotationImpl::bounds() const {
return LatLngBounds(point.position, point.position);
}
} // namespace mbgl

View File

@@ -43,7 +43,6 @@ public:
PointAnnotationImpl(const AnnotationID, const PointAnnotation&);
LatLngBounds bounds() const;
void updateLayer(const TileID&, AnnotationTileLayer&) const;
const AnnotationID id;

View File

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

View File

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

View File

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