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:
parent
da7cd0f500
commit
26c29eed53
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user