Skip to content

Commit

Permalink
Remove unused function Header_readMeterName
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and BenBE committed Dec 6, 2020
1 parent 7ba25aa commit 3d15ba5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions Header.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,6 @@ int Header_size(Header* this, int column) {
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) {
Vector* meters = this->columns[column];

Expand Down
2 changes: 0 additions & 2 deletions Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ Meter* Header_addMeterByClass(Header* this, const MeterClass* type, int param, i

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);

void Header_reinit(Header* this);
Expand Down

0 comments on commit 3d15ba5

Please sign in to comment.