From 3d15ba51974827693ed7d34149290c812d652dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 24 Nov 2020 19:19:58 +0100 Subject: [PATCH] Remove unused function Header_readMeterName --- Header.c | 15 --------------- Header.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/Header.c b/Header.c index e1049752..24c40771 100644 --- a/Header.c +++ b/Header.c @@ -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]; diff --git a/Header.h b/Header.h index 3494cdd0..870fbd85 100644 --- a/Header.h +++ b/Header.h @@ -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);