chore: remove dead code and duplicate logic
- drop unused assertNever, canvg dependency (never imported), readonly re-export shim in VertebraPicker, stale equine named export - unexport validateBoneElement (internal only) - getBoneIdFromEvent now delegates to getAnnotatedElement (dup walk-up) - rasterizeSvg: drop ignored _scale param (2 call sites + tests) - extract byte-identical word-wrap into pdf/render/text.ts - extract mergeBones helper in EditorRoute (block duplicated twice) - fix stale canvg comment in observationPage Checks: typecheck, lint, 174/174 tests, build all green
This commit is contained in:
1 parent
c55da07697
commit
bbdc0e851a
14 files changed
+55
-141
No files matched your search
@@ -7,11 +7,3 @@ export function assert(condition: unknown, message: string): asserts condition {
|
||||
throw new Error(`Assertion failed: ${message}`)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks a code path as unreachable for exhaustive switch coverage.
|
||||
* TypeScript will error at compile time if the path is reachable.
|
||||
*/
|
||||
export function assertNever(value: never, message?: string): never {
|
||||
throw new Error(message ?? `Unexpected value: ${JSON.stringify(value)}`)
|
||||
}
|
||||
Reference in new issue
Block a user