From 906acee9788d0759de7534703042c671825db5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 18 Jul 2026 16:08:29 +0200 Subject: [PATCH] chore(insights): drop the now-unused environment-field label helpers The correlation-narrative localisation replaced the env-channel narration labels (which read through getEnvironmentField().narrationLabel) with the localised insights.correlation.channel.ENV_* keys, leaving these two helpers dead. --- src/lib/environment/fields.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib/environment/fields.ts b/src/lib/environment/fields.ts index 70e94d6cd..58fd093e1 100644 --- a/src/lib/environment/fields.ts +++ b/src/lib/environment/fields.ts @@ -119,13 +119,3 @@ export const ENVIRONMENT_FIELDS: readonly EnvironmentField[] = [ /** The correlation channel keys, in declaration order. */ export const ENVIRONMENT_CHANNEL_KEYS: readonly string[] = ENVIRONMENT_FIELDS.map((f) => f.key); - -/** True for a registered environmental channel key. */ -export function isEnvironmentChannelKey(key: string): boolean { - return ENVIRONMENT_CHANNEL_KEYS.includes(key); -} - -/** Resolve a field by its key, or null when unregistered. */ -export function getEnvironmentField(key: string): EnvironmentField | null { - return ENVIRONMENT_FIELDS.find((f) => f.key === key) ?? null; -}