From 599b54163affc60026d30d8a0f16f0df14c1d2fc Mon Sep 17 00:00:00 2001 From: Cody Hansen Date: Tue, 28 Nov 2023 07:26:50 -1000 Subject: [PATCH] Removed unused categorical checker and an older comment --- src/components/timeline/LayerXRange.svelte | 1 - src/utilities/timeline.ts | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/src/components/timeline/LayerXRange.svelte b/src/components/timeline/LayerXRange.svelte index 624348070c..5384a43c3f 100644 --- a/src/components/timeline/LayerXRange.svelte +++ b/src/components/timeline/LayerXRange.svelte @@ -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 && diff --git a/src/utilities/timeline.ts b/src/utilities/timeline.ts index 34394b3f4e..d021faa2a8 100644 --- a/src/utilities/timeline.ts +++ b/src/utilities/timeline.ts @@ -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 */