From a571dcc47a403762807f717afd2913012084b93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 29 Oct 2026 09:43:37 +0100 Subject: [PATCH] refactor(measurements): drop a fold-source helper nothing calls The ingest guard reads the per-source map through the folded-window rules, so the standalone predicate had no caller. --- src/lib/measurements/dense-intraday-sources.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lib/measurements/dense-intraday-sources.ts b/src/lib/measurements/dense-intraday-sources.ts index 2db64daa9..3c1891e54 100644 --- a/src/lib/measurements/dense-intraday-sources.ts +++ b/src/lib/measurements/dense-intraday-sources.ts @@ -84,16 +84,3 @@ export type DenseIntradayFoldSource = export const DENSE_INTRADAY_FOLD_SOURCES = Object.keys( DENSE_INTRADAY_FOLD_TYPES_BY_SOURCE, ) as readonly DenseIntradayFoldSource[]; - -/** Whether the fold takes `type` from `source`. */ -export function isDenseFoldedSample( - source: MeasurementSource, - type: MeasurementType, -): boolean { - const types = ( - DENSE_INTRADAY_FOLD_TYPES_BY_SOURCE as Partial< - Record> - > - )[source]; - return types?.has(type) ?? false; -}