mirror of https://github.com/xzeldon/htop.git
Remove unused function Header_readMeterName
This commit is contained in:
parent
7ba25aa3c4
commit
3d15ba5197
15
Header.c
15
Header.c
|
@ -131,21 +131,6 @@ int Header_size(Header* this, int column) {
|
||||||
return Vector_size(meters);
|
return Vector_size(meters);
|
||||||
}
|
}
|
||||||
|
|
||||||
char* Header_readMeterName(Header* this, int i, int column) {
|
|
||||||
Vector* meters = this->columns[column];
|
|
||||||
Meter* meter = (Meter*) Vector_get(meters, i);
|
|
||||||
|
|
||||||
int nameLen = strlen(Meter_name(meter));
|
|
||||||
int len = nameLen + 100;
|
|
||||||
char* name = xMalloc(len);
|
|
||||||
memcpy(name, Meter_name(meter), nameLen);
|
|
||||||
name[nameLen] = '\0';
|
|
||||||
if (meter->param)
|
|
||||||
xSnprintf(name + nameLen, len - nameLen, "(%d)", meter->param);
|
|
||||||
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
MeterModeId Header_readMeterMode(Header* this, int i, int column) {
|
MeterModeId Header_readMeterMode(Header* this, int i, int column) {
|
||||||
Vector* meters = this->columns[column];
|
Vector* meters = this->columns[column];
|
||||||
|
|
||||||
|
|
2
Header.h
2
Header.h
|
@ -39,8 +39,6 @@ Meter* Header_addMeterByClass(Header* this, const MeterClass* type, int param, i
|
||||||
|
|
||||||
int Header_size(Header* this, int column);
|
int Header_size(Header* this, int column);
|
||||||
|
|
||||||
char* Header_readMeterName(Header* this, int i, int column);
|
|
||||||
|
|
||||||
MeterModeId Header_readMeterMode(Header* this, int i, int column);
|
MeterModeId Header_readMeterMode(Header* this, int i, int column);
|
||||||
|
|
||||||
void Header_reinit(Header* this);
|
void Header_reinit(Header* this);
|
||||||
|
|
Loading…
Reference in New Issue