summaryrefslogtreecommitdiffstats
path: root/Meter.h
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-04-18 21:51:08 +0800
committerBenBE <BenBE@geshi.org>2024-04-20 19:36:00 +0200
commit24b54912510a9cb9dc0d14b4f7edd752da062d80 (patch)
treee49ae8eaf3025602ffb1b8c17dd267b1a04d6b0d /Meter.h
parent3e00de8e6868ccdc62f2c6983b9f4b1f856b1349 (diff)
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 <explorer09@gmail.com>
Diffstat (limited to 'Meter.h')
-rw-r--r--Meter.h8
1 files changed, 0 insertions, 8 deletions
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy