mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
table: remove footer
This commit is contained in:
parent
2b67178a04
commit
7cfbb3f09d
3 changed files with 0 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -196,8 +196,6 @@ void hist_plot(const struct hist *h)
|
|||
|
||||
free(buf);
|
||||
}
|
||||
|
||||
table_footer(&table);
|
||||
}
|
||||
|
||||
char * hist_dump(const struct hist *h)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue