Remove unused vars

chore/tables-to-TS
ebb-tide 2018-05-16 18:32:36 -07:00
parent 80c35e8220
commit e18868b44d
1 changed files with 9 additions and 10 deletions

View File

@ -184,13 +184,14 @@ const constructCells = (
responseIndex,
seriesIndex,
}))
// tslint:disable-next-line:no-unused-vars
const [__, ...rest] = columns
const labelsFromColumns = fastMap<string, Label>(rest, field => ({
label: `${measurement}.${field}`,
responseIndex,
seriesIndex,
}))
const labelsFromColumns = fastMap<string, Label>(
columns.slice(1),
field => ({
label: `${measurement}.${field}`,
responseIndex,
seriesIndex,
})
)
unsortedLabels = fastConcat<Label>(labelsFromTags, labelsFromColumns)
seriesLabels[ind] = unsortedLabels
@ -202,9 +203,7 @@ const constructCells = (
)
.sort()
.join('')
// tslint:disable-next-line:no-unused-vars
const [__, ...rest] = columns
unsortedLabels = fastMap<string, Label>(rest, field => ({
unsortedLabels = fastMap<string, Label>(columns.slice(1), field => ({
label: `${measurement}.${field}${tagSet}`,
responseIndex,
seriesIndex,