From 24b54912510a9cb9dc0d14b4f7edd752da062d80 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Thu, 18 Apr 2024 21:51:08 +0800 Subject: Make 'Meter_modes' private and simplify its structure All client codes that access this global `Meter_modes` array have been replaced in previous commits, thus it's no longer necessary to keep this internal information (draw functions, default heights, etc.) public. It was also a bad idea when the client codes need to avoid accessing `Meter_modes[0]` (which is reserved and contains null information) by themselves. Signed-off-by: Kang-Che Sung --- Meter.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Meter.h') diff --git a/Meter.h b/Meter.h index a587e4b5..1a16d19a 100644 --- a/Meter.h +++ b/Meter.h @@ -117,12 +117,6 @@ struct Meter_ { void* meterData; }; -typedef struct MeterMode_ { - Meter_Draw draw; - const char* uiName; - int h; -} MeterMode; - typedef enum { /* Meter mode 0 is reserved */ BAR_METERMODE = 1, @@ -155,8 +149,6 @@ void Meter_setMode(Meter* this, int modeIndex); ListItem* Meter_toListItem(const Meter* this, bool moving); -extern const MeterMode* const Meter_modes[]; - extern const MeterClass BlankMeter_class; #endif -- cgit v1.2.3