From fd46dcc3a1ec6402066c30a9e41fb46c98136936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 10 Sep 2026 15:43:37 +0200 Subject: [PATCH] chore: drop two exports nothing reads The delivery-state reader in the error-reporting module had no caller: the card reads the three columns itself. The skippable-step id type was exported for a consumer that never appeared. The dead-code gate names both. --- src/lib/monitoring/glitchtip-delivery.ts | 20 -------------------- src/lib/onboarding/needs.ts | 3 --- 2 files changed, 23 deletions(-) diff --git a/src/lib/monitoring/glitchtip-delivery.ts b/src/lib/monitoring/glitchtip-delivery.ts index c14f15749..c18ea0020 100644 --- a/src/lib/monitoring/glitchtip-delivery.ts +++ b/src/lib/monitoring/glitchtip-delivery.ts @@ -110,23 +110,3 @@ export function summariseGlitchtipDelivery( windowHours: GLITCHTIP_DELIVERY_WINDOW_HOURS, }; } - -export async function getGlitchtipDeliveryState(): Promise { - try { - const settings = await prisma.appSettings.findUnique({ - where: { id: "singleton" }, - select: { - glitchtipLastOkAt: true, - glitchtipLastFailureAt: true, - glitchtipLastFailureReason: true, - }, - }); - return { - lastOkAt: settings?.glitchtipLastOkAt ?? null, - lastFailureAt: settings?.glitchtipLastFailureAt ?? null, - lastFailureReason: settings?.glitchtipLastFailureReason ?? null, - }; - } catch { - return { lastOkAt: null, lastFailureAt: null, lastFailureReason: null }; - } -} diff --git a/src/lib/onboarding/needs.ts b/src/lib/onboarding/needs.ts index c271088eb..59430ad96 100644 --- a/src/lib/onboarding/needs.ts +++ b/src/lib/onboarding/needs.ts @@ -69,9 +69,6 @@ export const ONBOARDING_SKIPPABLE_STEP_IDS = [ "first-result", ] as const; -export type OnboardingSkippableStepId = - (typeof ONBOARDING_SKIPPABLE_STEP_IDS)[number]; - /** * Q1 — whose record this is. The vocabularies below are pinned against the * registry's derivation input with `satisfies`, so a value added here that the