summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/feature_index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/geometry/feature_index.cpp')
-rw-r--r--src/mbgl/geometry/feature_index.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mbgl/geometry/feature_index.cpp b/src/mbgl/geometry/feature_index.cpp
index d3d523af0a..fb68b572b1 100644
--- a/src/mbgl/geometry/feature_index.cpp
+++ b/src/mbgl/geometry/feature_index.cpp
@@ -123,11 +123,7 @@ void FeatureIndex::addFeature(
Feature feature { mapbox::geometry::point<double>() };
feature.properties = geometryTileFeature->getProperties();
-
- optional<uint64_t> id = geometryTileFeature->getID();
- if (id) {
- feature.id = Value(*id);
- }
+ feature.id = geometryTileFeature->getID();
result[layerID].push_back(std::move(feature));
}