Skip to content

chore: remove unused formatTao and formatNumber helpers#47

Open
FairyPigDev wants to merge 1 commit into
entrius:testfrom
FairyPigDev:chore/remove-unused-format-helpers
Open

chore: remove unused formatTao and formatNumber helpers#47
FairyPigDev wants to merge 1 commit into
entrius:testfrom
FairyPigDev:chore/remove-unused-format-helpers

Conversation

@FairyPigDev
Copy link
Copy Markdown

Closes: #46

Summary

  • Delete formatTao and formatNumber from src/utils/format.ts — both exports have zero callers across src/.

Why

Amount rendering in the app is handled by formatAmount (chain-aware via CHAIN_DECIMALS) or inline toLocaleString at each call site. These two helpers are orphaned dead code.

Verified:
```
$ grep -r "formatTao|f" src/
src/utils/format.ts: (only the definitions themselves)
```

Changes

  • src/utils/format.ts: −11 lines, 0 insertions

Test plan

  • npm run build passes (tsc + vite build)
  • npm run lint passes (eslint, 0 warnings)
  • Pure deletion — no behavior change

formatTao and formatNumber are exported from utils/format.ts but never
imported anywhere in src/. Amount formatting is handled by formatAmount
(which delegates to CHAIN_DECIMALS) and per-callsite toLocaleString, so
the helpers are dead code.
@FairyPigDev FairyPigDev force-pushed the chore/remove-unused-format-helpers branch from d0bdf65 to be4231b Compare May 9, 2026 19:08
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.

Remove unused formatTao and formatNumber helpers from utils/format.ts

1 participant