Skip to content

Commit

Permalink
Remove unused index
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Feb 9, 2018
1 parent c6f26fd commit 31c42af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/data/bucket/line_bucket.js
Expand Up @@ -150,13 +150,12 @@ class LineBucket implements Bucket {
const miterLimit = layout.get('line-miter-limit');
const roundLimit = layout.get('line-round-limit');

for (let i = 0; i < geometry.length; i++) {
const line = geometry[i];
this.addLine(line, feature, join, cap, miterLimit, roundLimit, i);
for (const line of geometry) {
this.addLine(line, feature, join, cap, miterLimit, roundLimit);
}
}

addLine(vertices: Array<Point>, feature: VectorTileFeature, join: string, cap: string, miterLimit: number, roundLimit: number, index: number) {
addLine(vertices: Array<Point>, feature: VectorTileFeature, join: string, cap: string, miterLimit: number, roundLimit: number) {
let lineDistances = null;
if (!!feature.properties &&
feature.properties.hasOwnProperty('$distance_total') &&
Expand Down

0 comments on commit 31c42af

Please sign in to comment.