Revert "There aren't too many features if we intentionally truncated them"

This reverts commit 9fb7b6882d.
This commit is contained in:
Erica Fischer
2025-05-06 11:04:59 -07:00
parent 9fb7b6882d
commit 1ff39b59ed
-2
View File
@@ -2524,7 +2524,6 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
layer_features.resize(limit_tile_feature_count_at_maxzoom);
too_many_features = false; // don't try to drop; we have already truncated
skipped = 0; // doesn't matter that we skipped features; we have truncated
too_many_features = too_many_bytes = false;
}
} else if (limit_tile_feature_count != 0) {
if (layer_features.size() > limit_tile_feature_count) {
@@ -2532,7 +2531,6 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
layer_features.resize(limit_tile_feature_count);
too_many_features = false; // don't try to drop; we have already truncated
skipped = 0; // doesn't matter that we skipped features; we have truncated
too_many_features = too_many_bytes = false;
}
}
}