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