From f9132c088782e053b1d6bd4ca4a2c164b77a60b7 Mon Sep 17 00:00:00 2001 From: Hank Bob Date: Fri, 29 May 2026 18:14:48 +0700 Subject: [PATCH] chore: remove dead code across Go and TypeScript - Delete unused Logo.tsx component (zero imports) - Remove dead export getGoogleAnalyticsConsentStorageKey() - Remove dead export TelemetryBatch interface - Remove duplicate/unused profile package imports in e2e/integration_test.go - Fix unused body variable in coordinator/api/fullstack_integration_test.go Found via: jscpd + ts-prune + staticcheck --- console-ui/src/components/brand/Logo.tsx | 28 ------------------- console-ui/src/lib/google-analytics.ts | 3 -- console-ui/src/lib/telemetry-types.ts | 3 -- coordinator/api/fullstack_integration_test.go | 2 +- e2e/integration_test.go | 2 -- 5 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 console-ui/src/components/brand/Logo.tsx diff --git a/console-ui/src/components/brand/Logo.tsx b/console-ui/src/components/brand/Logo.tsx deleted file mode 100644 index 40ddecfad9..0000000000 --- a/console-ui/src/components/brand/Logo.tsx +++ /dev/null @@ -1,28 +0,0 @@ -"use client"; - -export function Logo({ - variant = "full", - className = "", -}: { - variant?: "full" | "compact"; - className?: string; -}) { - if (variant === "compact") { - return ( - - D - - ); - } - - return ( -
-

- Darkbloom -

-

- An Eigen Labs project -

-
- ); -} diff --git a/console-ui/src/lib/google-analytics.ts b/console-ui/src/lib/google-analytics.ts index e774d0142d..027e3652d1 100644 --- a/console-ui/src/lib/google-analytics.ts +++ b/console-ui/src/lib/google-analytics.ts @@ -134,9 +134,6 @@ export function revokeGoogleAnalyticsConsent() { window.dispatchEvent(new Event("darkbloom-ga-consent-changed")); } -export function getGoogleAnalyticsConsentStorageKey() { - return GA_CONSENT_STORAGE_KEY; -} function getGtag() { const measurementId = getGoogleAnalyticsMeasurementId(); diff --git a/console-ui/src/lib/telemetry-types.ts b/console-ui/src/lib/telemetry-types.ts index 13ab822004..8aea77368c 100644 --- a/console-ui/src/lib/telemetry-types.ts +++ b/console-ui/src/lib/telemetry-types.ts @@ -48,9 +48,6 @@ export interface TelemetryEvent { stack?: string; } -export interface TelemetryBatch { - events: TelemetryEvent[]; -} /** Server-enforced allowlist — keep in sync with the coordinator handler. */ export const TELEMETRY_ALLOWED_FIELDS = new Set([ diff --git a/coordinator/api/fullstack_integration_test.go b/coordinator/api/fullstack_integration_test.go index 38ac0f9306..41d68d5a46 100644 --- a/coordinator/api/fullstack_integration_test.go +++ b/coordinator/api/fullstack_integration_test.go @@ -678,7 +678,7 @@ func TestFullStack_MultiProviderInference(t *testing.T) { // --- Test 8: Model not available --- t.Log("--- Test 8: Model not available ---") - code, body, _ = consumerRequest(ctx, ts.URL, "test-key", "nonexistent-model-xyz", + code, _, _ = consumerRequest(ctx, ts.URL, "test-key", "nonexistent-model-xyz", "hello", true) if code == 200 { t.Error("request for nonexistent model should not succeed") diff --git a/e2e/integration_test.go b/e2e/integration_test.go index 594a947fb4..64568143fb 100644 --- a/e2e/integration_test.go +++ b/e2e/integration_test.go @@ -20,8 +20,6 @@ import ( "github.com/eigeninference/d-inference/coordinator/payments" "github.com/eigeninference/d-inference/e2e/testbed" tbassert "github.com/eigeninference/d-inference/e2e/testbed/assert" - "github.com/eigeninference/d-inference/e2e/testbed/profile" - tbprofile "github.com/eigeninference/d-inference/e2e/testbed/profile" ) var httpTimeout = 300 * time.Second