From b0d4257b661aaa752b1172a7fc8bc06b88f33eec Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 10 Jun 2024 11:25:36 +0200 Subject: [PATCH] Remove unnecessary code --- tools/src/tabulate.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tools/src/tabulate.h b/tools/src/tabulate.h index 860ecfa61..6724d75e4 100644 --- a/tools/src/tabulate.h +++ b/tools/src/tabulate.h @@ -1,25 +1,12 @@ #include #include -#include #include #include #include #include -#include #include -std::string rowFormatString(const std::vector& colWidths) { - std::string rowFmt = ""; - rowFmt.reserve(colWidths.size() * 6); // heuristic working for columns that are 2 digit numbers wide - - for (const auto w : colWidths) { - rowFmt.append(fmt::format("{{:<{}}}", w)); - } - - return rowFmt; -} - template void printTable(const std::vector>& rows, const std::vector& headers) { // Simply assume that all rows have the same widths