Skip to content

refactor: drop unused sounds, input mapper, and crawler_mode - #98

Open
dakejahl wants to merge 4 commits into
ark-releasefrom
refactor/drop-dead-code
Open

refactor: drop unused sounds, input mapper, and crawler_mode#98
dakejahl wants to merge 4 commits into
ark-releasefrom
refactor/drop-dead-code

Conversation

@dakejahl

Copy link
Copy Markdown

Summary

Delete a few unused functions and a dead flag. One commit each.

Problem

playDuskingTune and computeMSInput have no callers. crawler_mode is never written after init-to-zero, so its BEMF-timeout branch is dead. signal.h declared inputSet / dshot / servoPwm twice.

Solution

Remove the dead code and the duplicate externs. LTO already dropped the unused functions from the binary; this just deletes the source. No behavior change.

Nothing in the firmware calls it. LTO already drops it from the binary; delete the source so it is not rediscovered as a live tune.
Old oneshot-style pulse mapper. Nothing calls it.
The flag was never written after init-to-zero. The crawler BEMF-timeout branch was dead; keep the live startup-duty path only.
inputSet, dshot, and servoPwm were declared twice in the same header.
@dakejahl
dakejahl marked this pull request as ready for review August 15, 2026 21:33
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.

1 participant