Skip to content

Commit a16da45

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 11b0e42 commit a16da45

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Diff for: Meter.c

-22
Original file line numberDiff line numberDiff line change
@@ -227,28 +227,6 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
227227

228228
/* ---------- GraphMeterMode ---------- */
229229

230-
#if 0 /* Used in old graph meter drawing code; to be removed */
231-
#ifdef HAVE_LIBNCURSESW
232-
233-
#define PIXPERROW_UTF8 4
234-
static const char* const GraphMeterMode_dotsUtf8[] = {
235-
/*00*/" ", /*01*/"⢀", /*02*/"⢠", /*03*/"⢰", /*04*/ "⢸",
236-
/*10*/"⡀", /*11*/"⣀", /*12*/"⣠", /*13*/"⣰", /*14*/ "⣸",
237-
/*20*/"⡄", /*21*/"⣄", /*22*/"⣤", /*23*/"⣴", /*24*/ "⣼",
238-
/*30*/"⡆", /*31*/"⣆", /*32*/"⣦", /*33*/"⣶", /*34*/ "⣾",
239-
/*40*/"⡇", /*41*/"⣇", /*42*/"⣧", /*43*/"⣷", /*44*/ "⣿"
240-
};
241-
242-
#endif
243-
244-
#define PIXPERROW_ASCII 2
245-
static const char* const GraphMeterMode_dotsAscii[] = {
246-
/*00*/" ", /*01*/".", /*02*/":",
247-
/*10*/".", /*11*/".", /*12*/":",
248-
/*20*/":", /*21*/":", /*22*/":"
249-
};
250-
#endif
251-
252230
static void GraphMeterMode_reallocateGraphBuffer(Meter* this, const GraphDrawContext* context, size_t nValues) {
253231
GraphData* data = &this->drawData;
254232

0 commit comments

Comments
 (0)