Skip to content

Commit

Permalink
Drop unneeded feature map
Browse files Browse the repository at this point in the history
  • Loading branch information
anandthakker committed Feb 7, 2017
1 parent c7fef40 commit c20020e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/data/bucket/symbol_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ class SymbolBucket {
// It's better to place labels on one long line than on many short segments.
this.features = mergeLines(this.features);
}

// set up this mapping to allow for constant-time lookups in place()
this.featuresByIndex = {};
for (const feature of this.features) {
this.featuresByIndex[feature.index] = feature;
}
}

isEmpty() {
Expand Down

0 comments on commit c20020e

Please sign in to comment.