Skip to content

Commit

Permalink
Remove unused constant defines of graph meter code
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Explorer09 committed Aug 25, 2024
1 parent 18fa4d8 commit cee45a7
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,28 +227,6 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {

/* ---------- GraphMeterMode ---------- */

#if 0 /* Used in old graph meter drawing code; to be removed */
#ifdef HAVE_LIBNCURSESW

#define PIXPERROW_UTF8 4
static const char* const GraphMeterMode_dotsUtf8[] = {
/*00*/" ", /*01*/"⢀", /*02*/"⢠", /*03*/"⢰", /*04*/ "⢸",
/*10*/"⡀", /*11*/"⣀", /*12*/"⣠", /*13*/"⣰", /*14*/ "⣸",
/*20*/"⡄", /*21*/"⣄", /*22*/"⣤", /*23*/"⣴", /*24*/ "⣼",
/*30*/"⡆", /*31*/"⣆", /*32*/"⣦", /*33*/"⣶", /*34*/ "⣾",
/*40*/"⡇", /*41*/"⣇", /*42*/"⣧", /*43*/"⣷", /*44*/ "⣿"
};

#endif

#define PIXPERROW_ASCII 2
static const char* const GraphMeterMode_dotsAscii[] = {
/*00*/" ", /*01*/".", /*02*/":",
/*10*/".", /*11*/".", /*12*/":",
/*20*/":", /*21*/":", /*22*/":"
};
#endif

static void GraphMeterMode_reallocateGraphBuffer(Meter* this, const GraphDrawContext* context, size_t nValues) {
GraphData* data = &this->drawData;

Expand Down

0 comments on commit cee45a7

Please sign in to comment.