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.
This commit is contained in:
Marc-André Bombeck committed 2026-09-10 15:43:37 +02:00
1 parent 29a02d6741
commit fd46dcc3a1
2 files changed
-23

No files matched your search

-20
View File
@@ -110,23 +110,3 @@ export function summariseGlitchtipDelivery(
windowHours: GLITCHTIP_DELIVERY_WINDOW_HOURS,
};
}
export async function getGlitchtipDeliveryState(): Promise<GlitchtipDeliveryState> {
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 };
}
}
-3
View File
@@ -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