]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
format-table: drop pointless table_data_rgap_color() func
authorMike Yuan <me@yhndnzj.com>
Wed, 11 Dec 2024 18:18:32 +0000 (19:18 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 11 Dec 2024 18:19:46 +0000 (19:19 +0100)
Follow-up for aab79f52784b4778ae0534452757d9fbf608076a

src/shared/format-table.c

index 73fe16b85cb7b4956c915e8b51715b8ddcef88d0..e30cdb55077f98d45be02729e2977bce8de02634 100644 (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);
                         }