diff --git a/common/include/villas/table.h b/common/include/villas/table.h index 801e577fa..e3a9a0ecf 100644 --- a/common/include/villas/table.h +++ b/common/include/villas/table.h @@ -57,9 +57,6 @@ void table_header(struct table *t); /** Print table rows. */ void table_row(struct table *t, ...); -/** Print the table footer. */ -void table_footer(struct table *t); - /** @} */ #ifdef __cplusplus diff --git a/common/lib/hist.c b/common/lib/hist.c index 92686f9e2..1354c0e73 100644 --- a/common/lib/hist.c +++ b/common/lib/hist.c @@ -196,8 +196,6 @@ void hist_plot(const struct hist *h) free(buf); } - - table_footer(&table); } char * hist_dump(const struct hist *h) diff --git a/common/lib/table.c b/common/lib/table.c index c48258858..5cb080c94 100644 --- a/common/lib/table.c +++ b/common/lib/table.c @@ -146,27 +146,6 @@ void table_row(struct table *t, ...) va_end(args); - stats("%s", line); - free(line); -} - -void table_footer(struct table *t) -{ - if (t->width != log_get_width()) - table_resize(t, log_get_width()); - - char *line = strf("\b"); - - for (int i = 0; i < t->ncols; i++) { - for (int j = 0; j < t->cols[i]._width + 2; j++) - strcatf(&line, BOX_LR); - - if (i == t->ncols - 1) - strcatf(&line, "%s", BOX_UL); - else - strcatf(&line, "%s", BOX_ULR); - } - info("%s", line); free(line); }