Skip to content

Remove unused pose aliases and NFC adapter exports - #41

Merged
ucguy4u merged 1 commit into
mainfrom
cursor/dead-code-cleanup-8d34
Oct 23, 2026
Merged

ucguy4u merged 1 commit into
mainfrom
cursor/dead-code-cleanup-8d34

Conversation

@ucguy4u

@ucguy4u ucguy4u commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the dead-code survey on main (98a67c4). Removes symbols that had zero production references (verified via repo-wide search and green CI test suite).

avatar_renderer

  • Removed @Deprecated pose API aliases (shouldApplyRelaxedArmPose, relaxedArmPoseFrame, applyRelaxedArmPose).
  • Removed test-only animation builders (buildRelaxedArmPoseAnimation, buildLivingStatueIdleAnimation); runtime already uses buildSkinnedHumanoidPresentationAnimation / applySkinnedHumanoidProceduralMotion.
  • Trimmed tests accordingly; arm Z-twist assertions kept on confidentFashionArmPoseFrame.

sharing

  • Removed unused exported NFC adapter surface: decodeEncounterFromNdef, encounterTextFromNdef, ingestNfcReads, and NfcRead / NfcEncounterRead / NfcReadRejected.
  • Kept the production path: ndefRecordText, encodeNdefTextPayload, amiroLinkTextFromNdef (used by ManagerNfcReader).
  • Dropped tests that only exercised the removed API (~150 lines).

Docs

  • Updated TODOS.md to note ingestNfcReads removal.

Verification

  • melos run analyze — no issues (9 packages)
  • melos run test — all tests passed (including app widget tests after thermion native deps)

Risk

Low: no app/lib or nfc call sites referenced the deleted sharing exports; avatar pose changes are internal to avatar_body_pose.dart.

Open in Web Open in Cursor 

Drop deprecated avatar pose re-exports and test-only animation builders
that production never called. Remove sharing's unused NDEF encounter
decoder, ingest stream, and related tests; the app reads tags via
amiroLinkTextFromNdef and ManagerNfcReader.

Co-authored-by: Uday Chauhan <chauhan.s.uday26@gmail.com>
@ucguy4u
ucguy4u merged commit eb04798 into main Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants