1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

format-table: drop pointless table_data_rgap_color() func

Follow-up for aab79f5278
This commit is contained in:
Mike Yuan 2024-12-11 19:18:32 +01:00
parent da7cd0f500
commit 26c29eed53
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -2220,12 +2220,6 @@ static const char* table_data_color(const TableData *d) {
return NULL;
}
static const char* table_data_rgap_color(const TableData *d) {
assert(d);
return d->rgap_color ?: d->rgap_color;
}
static const char* table_data_underline(const TableData *d) {
assert(d);
@ -2642,7 +2636,7 @@ int table_print(Table *t, FILE *f) {
if (color || underline)
fputs(ANSI_NORMAL, f);
gap_color = table_data_rgap_color(d);
gap_color = d->rgap_color;
gap_underline = table_data_rgap_underline(d);
}