Skip to content

Commit

Permalink
Removed unused categorical checker and an older comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Nov 28, 2023
1 parent fcd40a6 commit 599b541
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/components/timeline/LayerXRange.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
$: canvasHeightDpr = drawHeight * dpr;
$: canvasWidthDpr = drawWidth * dpr;
// If the user wants to see the stateLineChart, split this layer in half horizontally.
$: if (
canvasHeightDpr &&
canvasWidthDpr &&
Expand Down
19 changes: 0 additions & 19 deletions src/utilities/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,25 +598,6 @@ export function getYAxisBounds(
return scaleDomain as number[];
}

/**
* Checks if the domain is categorical (list of strings).
* @param values
* @returns True if the domain is categorical.
*/
export function isDomainCategorical(values: (number | string | null)[]): boolean {
if (values === null || values.length === 0) {
return false;
}

for (const value of values) {
if (typeof value === 'number') {
return false;
}
}

return true;
}

/**
* Populates y-axes with scaleDomain
*/
Expand Down

0 comments on commit 599b541

Please sign in to comment.