chore: drop two exports nothing reaches

The dead-code gate has been red on this branch since the sharing refusal
contracts landed. Neither name is new and neither was noticed, because
knip is not in the local gate.

consentRequiredResponse lost its last caller when every delegable route
started sharing one 403 description through recordRefusal(); the AI
consent sentence it wrapped is still used and stays, with a note at the
constant saying why there is no response object beside it any more.
mutateThenRestore was written with the sharing security fixtures and has
never been called.

No ignore entries: an export with no consumer is the thing the gate is
for.
This commit is contained in:
Marc-André Bombeck committed 2026-08-07 10:25:52 +02:00
1 parent c3c058074b
commit e2eea55b6e
2 files changed
+6 -23

No files matched your search

-16
View File
@@ -60,19 +60,3 @@ export const SECURITY_PRINCIPALS = {
job: { id: "job-owner-idempotency", origin: "owner-request" },
},
} as const satisfies Record<string, SecurityPrincipalFixture>;
export async function mutateThenRestore<T>(
mutate: () => Promise<T>,
restore: (result: T) => Promise<void>,
): Promise<T> {
let result: T | undefined;
let completed = false;
try {
result = await mutate();
completed = true;
return result;
} finally {
if (completed) await restore(result as T);
}
}