From dba9afea8df3758e15a7344929e3853a3b7d3ae7 Mon Sep 17 00:00:00 2001 From: OmO Orchestrator Date: Fri, 20 Nov 2026 04:00:18 -0500 Subject: [PATCH] fix(build): remove dead code failing tsc -b noUnusedLocals npm run build (tsc -b) enforces noUnusedLocals, which tsc --noEmit did not surface, so two leftovers from the wave-1 lanes were silently failing the production build: findfamily.ts hashNameToPoint (orphaned by the AEAD-seal rewrite) and an unused test import. Removed both; npm run build is green again. --- src/lib/findfamily.ts | 5 ----- src/lib/lightclockSensors.test.ts | 1 - 2 files changed, 6 deletions(-) diff --git a/src/lib/findfamily.ts b/src/lib/findfamily.ts index 488351a..2e116b5 100644 --- a/src/lib/findfamily.ts +++ b/src/lib/findfamily.ts @@ -116,11 +116,6 @@ function pointFromDigest(digest: Uint8Array) { return Point.BASE.multiply(scalar); } -/** One-way, deterministic map from a name to a ristretto255 group element. */ -async function hashNameToPoint(name: string) { - return pointFromDigest(await nameDigest(name)); -} - /** Domain-separated HKDF info for the per-entry id-sealing key. */ const ENC_ID_INFO = new TextEncoder().encode("findfamily:encid:v1"); /** AES-GCM nonce length in bytes. */ diff --git a/src/lib/lightclockSensors.test.ts b/src/lib/lightclockSensors.test.ts index e5e81aa..ef40b3e 100644 --- a/src/lib/lightclockSensors.test.ts +++ b/src/lib/lightclockSensors.test.ts @@ -6,7 +6,6 @@ import { REST_INFERRED_LUX, DEFAULT_ASLEEP_LUX, DEFAULT_AWAKE_LUX, - DEFAULT_GRAVITY_EXCLUDED_CALIBRATION, DEFAULT_GRAVITY_INCLUSIVE_CALIBRATION, LOCAL_ONLY_DISCLAIMER, actigraphySamplesFromEvents,