Commit e32f06d7 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

table: remove footer

parent 436e2dfa
......@@ -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);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment