Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Revert "IOMA-6234: copy patch from mapbox#8374 to prevent features cr…
Browse files Browse the repository at this point in the history
…ashes on stale tiles"

This reverts commit a613b76.
  • Loading branch information
Romain Quidet committed Mar 31, 2017
1 parent 0f81b5e commit dec4128
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/mbgl/geometry/feature_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,5 @@ void FeatureIndex::addBucketLayerName(const std::string& bucketName, const std::
void FeatureIndex::setCollisionTile(std::unique_ptr<CollisionTile> collisionTile_) {
collisionTile = std::move(collisionTile_);
}

void FeatureIndex::resetCollisionTile() {
collisionTile.reset();
}

} // namespace mbgl
1 change: 0 additions & 1 deletion src/mbgl/geometry/feature_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class FeatureIndex {
void addBucketLayerName(const std::string& bucketName, const std::string& layerName);

void setCollisionTile(std::unique_ptr<CollisionTile>);
void resetCollisionTile();

private:
void addFeature(
Expand Down
1 change: 0 additions & 1 deletion src/mbgl/tile/geometry_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ void GeometryTile::onLayout(LayoutResult result) {
buckets = std::move(result.buckets);
featureIndex = std::move(result.featureIndex);
data = std::move(result.tileData);
featureIndex->resetCollisionTile();
observer->onTileChanged(*this);
}

Expand Down

0 comments on commit dec4128

Please sign in to comment.