From 2e6df623bbf582e1177afb68af3bdb7843fca9d9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 28 Sep 2018 10:29:15 +0200 Subject: Cleanup: Make add_sample_data() local to translation unit This function in parse_csv.c was not used anywhere. Make it of static linkage. Signed-off-by: Berthold Stoeger --- core/import-csv.c | 2 +- core/import-csv.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'core') diff --git a/core/import-csv.c b/core/import-csv.c index 8d6c229fd..b3ff4261f 100644 --- a/core/import-csv.c +++ b/core/import-csv.c @@ -47,7 +47,7 @@ static timestamp_t parse_date(const char *date) return utc_mktime(&tm); } -void add_sample_data(struct sample *sample, enum csv_format type, double val) +static void add_sample_data(struct sample *sample, enum csv_format type, double val) { switch (type) { case CSV_DEPTH: diff --git a/core/import-csv.h b/core/import-csv.h index 720e368ed..bfaf7fe38 100644 --- a/core/import-csv.h +++ b/core/import-csv.h @@ -17,7 +17,6 @@ enum csv_format { #define MAXCOLDIGITS 10 -void add_sample_data(struct sample *sample, enum csv_format type, double val); int parse_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate); int try_to_open_csv(struct memblock *mem, enum csv_format type); int parse_txt_file(const char *filename, const char *csv); -- cgit v1.2.3-70-g09d2