mirror of https://github.com/xzeldon/htop.git
Remove useless assignment.
This commit is contained in:
parent
f5a469b5a8
commit
2bf8754bc2
2
Meter.c
2
Meter.c
|
@ -238,11 +238,11 @@ ListItem* Meter_toListItem(Meter* this) {
|
||||||
static void TextMeterMode_draw(Meter* this, int x, int y, int w) {
|
static void TextMeterMode_draw(Meter* this, int x, int y, int w) {
|
||||||
char buffer[METER_BUFFER_LEN];
|
char buffer[METER_BUFFER_LEN];
|
||||||
Meter_setValues(this, buffer, METER_BUFFER_LEN - 1);
|
Meter_setValues(this, buffer, METER_BUFFER_LEN - 1);
|
||||||
|
(void) w;
|
||||||
|
|
||||||
attrset(CRT_colors[METER_TEXT]);
|
attrset(CRT_colors[METER_TEXT]);
|
||||||
mvaddstr(y, x, this->caption);
|
mvaddstr(y, x, this->caption);
|
||||||
int captionLen = strlen(this->caption);
|
int captionLen = strlen(this->caption);
|
||||||
w -= captionLen;
|
|
||||||
x += captionLen;
|
x += captionLen;
|
||||||
mvhline(y, x, ' ', CRT_colors[DEFAULT_COLOR]);
|
mvhline(y, x, ' ', CRT_colors[DEFAULT_COLOR]);
|
||||||
attrset(CRT_colors[RESET_COLOR]);
|
attrset(CRT_colors[RESET_COLOR]);
|
||||||
|
|
Loading…
Reference in New Issue