Skip to content

Remove dead code from dead-code survey (pose, NFC, exports) - #42

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

ucguy4u merged 3 commits into
mainfrom
cursor/dead-code-cleanup-8d34

Conversation

@ucguy4u

@ucguy4u ucguy4u commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements the high-confidence dead-code items from the survey on main (98a67c4). One PR for merge-all-at-once.

Removed (~350 lines)

avatar_renderer

  • Deprecated pose aliases: shouldApplyRelaxedArmPose, relaxedArmPoseFrame, applyRelaxedArmPose
  • Test-only animation builders superseded at runtime: buildRelaxedArmPoseAnimation, buildLivingStatueIdleAnimation

sharing

  • Unused NFC adapter surface (never wired in app): decodeEncounterFromNdef, encounterTextFromNdef, ingestNfcReads, NfcRead / NfcEncounterRead / NfcReadRejected
  • Associated tests in ndef_encounter_test.dart

Public API tightening

avatar_renderer barrel now exports only what the app uses:

  • AvatarRenderer, ThermionAvatarRenderer, ThermionViewDetachGate
  • No longer exports resolveAssetPath, FilamentSurface, or ThermionFilamentSurface (internal / test seams)

Docs

TODOS.md — removed contradictory PR5/PR6 bullets about unmigrated NFC and legacy-only share links; documents removal of ingestNfcReads / decodeEncounterFromNdef.

Intentionally kept (survey noted, not dead)

Symbol Why kept
encodeNdefTextPayload Tested NDEF text spec; mirrors Kotlin HCE encoding
buildShareUri / parseShareUri Legacy amiro://share receive path still live
rust/core CI-backed; bridge unwired by design
All lib/**/*.dart files No orphan files found

No unused-import/unused-element analyzer warnings before or after; no pubspec dependency removals (none were zero-reference at direct-declaration level).

Verification

  • melos run analyze — 9/9 packages clean
  • melos run test — all passed (153 app + package tests)
Open in Web Open in Cursor 

cursoragent and others added 3 commits October 23, 2026 03:34
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>
Stop exporting internal asset paths and Filament test seams from the
package barrel; tests import src paths directly. Align TODOS with the
shipped encounter NFC path and removed NDEF adapter APIs.

Co-authored-by: Uday Chauhan <chauhan.s.uday26@gmail.com>
Resolve TODOS.md PR5 section: keep shipped NFC wiring notes and
document removal of unused NDEF adapter APIs.

Co-authored-by: Uday Chauhan <chauhan.s.uday26@gmail.com>
@ucguy4u
ucguy4u merged commit e73a4f1 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