mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
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:
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;
|
||||
}
|
||||
Reference in new issue
Block a user