From ccbce5a54e349af184bf10d0c9547d7c4ee1a4a5 Mon Sep 17 00:00:00 2001 From: galuis116 Date: Thu, 16 Jul 2026 02:03:13 -0400 Subject: [PATCH] chore(rees): remove dead captureError export in review-enrichment/src/sentry.ts A repo-wide search (src + test, excluding the compiled dist/ output) finds zero imports or calls anywhere. Every real call site already uses one of the more specific siblings instead: captureRouteError, captureUnhandledError, captureSourcemapUploadFailure, captureAnalyzerDegradation. Closes #6253 --- review-enrichment/src/sentry.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/review-enrichment/src/sentry.ts b/review-enrichment/src/sentry.ts index 10ebed8200..a986867337 100644 --- a/review-enrichment/src/sentry.ts +++ b/review-enrichment/src/sentry.ts @@ -150,19 +150,6 @@ export async function initSentry(env: NodeJS.ProcessEnv): Promise { } } -export function captureError(error: unknown, context?: Record): void { - captureScopedError(error, { - contextName: "rees", - context: { - ...context, - release: activeRelease, - environment: activeEnvironment, - }, - fingerprint: ["rees-error"], - tags: {}, - }); -} - export function captureRouteError( error: unknown, context: { route: string; method: string },