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.
This commit is contained in:
Marc-André Bombeck committed 2026-10-29 09:43:37 +01:00
1 parent 07cf9bba3e
commit a571dcc47a
1 file changed
-13
@@ -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<MeasurementSource, ReadonlySet<MeasurementType>>
>
)[source];
return types?.has(type) ?? false;
}