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.
This commit is contained in:
1 parent
e496fc27ac
commit
dba9afea8d
2 files changed
-6
No files matched your search
@@ -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. */
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user