Remove dead functions and unused Montserrat font flags

Six public API functions had no callers anywhere in the firmware:
splash_prev, splash_set_active, splash_current_name, splash_count,
ble_is_connected, imu_set_rotation, power_is_usb_connected,
power_usb_changed. Trimming them lets power.cpp drop the VBUS state
machine (cached_usb, usb_changed_flag, last_vbus_ms,
enableVbusVoltageMeasure). usage_rate_reset becomes file-static since
the only caller is in usage_rate.cpp itself. Montserrat font flags in
platformio.ini were enabled but never referenced.
This commit is contained in:
Hermann Björgvin Haraldsson
2026-05-11 02:19:45 +00:00
parent 7ed4710d28
commit f1feacb3dc
10 changed files with 5 additions and 84 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ static inline uint8_t oldest_idx(void) {
return (head + RING_SIZE - count) % RING_SIZE;
}
void usage_rate_reset(void) {
static void usage_rate_reset(void) {
count = 0;
head = 0;
}