From 6ff1a935b923b69d34d18e68af612297912c806b Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 30 Nov 2021 00:06:33 +0000 Subject: powermgmt: Remove an unnecessary function Remove battery_read_info() which is a simple wrapper function only used by debug screens. Use the polling functions directly to save a bit of code size. Change-Id: I2919f78105bab186f6933dc1823f9fa67fe74f3e --- firmware/export/powermgmt.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'firmware/export/powermgmt.h') diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 329e64d653..a4b924915c 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h @@ -149,10 +149,6 @@ unsigned int input_millivolts(void); /* voltage that device is running from */ void reset_battery_filter(int millivolts); #endif /* HAVE_BATTERY_SWITCH || HAVE_RESET_BATTERY_FILTER */ - -/* read unfiltered battery info */ -void battery_read_info(int *voltage, int *level); - /* Tells if the battery level is safe for disk writes */ bool battery_level_safe(void); -- cgit v1.2.3