Skip to content

Commit f4ee9cb

Browse files
committed
Remove unused constant defines of graph meter code
Specifically 'PIXPERROW_*' and 'GraphMeterMode_dots*' constants. They were commented out rather than removed in the previous commit (for ease of code reviewing). Now this commit removes the constant defines for good.
1 parent 053cc5c commit f4ee9cb

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Meter.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -243,28 +243,6 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
243243

244244
/* ---------- GraphMeterMode ---------- */
245245

246-
#if 0 /* Used in old graph meter drawing code; to be removed */
247-
#ifdef HAVE_LIBNCURSESW
248-
249-
#define PIXPERROW_UTF8 4
250-
static const char* const GraphMeterMode_dotsUtf8[] = {
251-
/*00*/" ", /*01*/"⢀", /*02*/"⢠", /*03*/"⢰", /*04*/ "⢸",
252-
/*10*/"⡀", /*11*/"⣀", /*12*/"⣠", /*13*/"⣰", /*14*/ "⣸",
253-
/*20*/"⡄", /*21*/"⣄", /*22*/"⣤", /*23*/"⣴", /*24*/ "⣼",
254-
/*30*/"⡆", /*31*/"⣆", /*32*/"⣦", /*33*/"⣶", /*34*/ "⣾",
255-
/*40*/"⡇", /*41*/"⣇", /*42*/"⣧", /*43*/"⣷", /*44*/ "⣿"
256-
};
257-
258-
#endif
259-
260-
#define PIXPERROW_ASCII 2
261-
static const char* const GraphMeterMode_dotsAscii[] = {
262-
/*00*/" ", /*01*/".", /*02*/":",
263-
/*10*/".", /*11*/".", /*12*/":",
264-
/*20*/":", /*21*/":", /*22*/":"
265-
};
266-
#endif
267-
268246
static void GraphMeterMode_reallocateGraphBuffer(Meter* this, const GraphDrawContext* context, size_t nValues) {
269247
GraphData* data = &this->drawData;
270248

0 commit comments

Comments
 (0)