Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 3, 2024
1 parent 0dda628 commit b0d4257
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tools/src/tabulate.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
#include <fmt/core.h>

#include <algorithm>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <string>
#include <tuple>
#include <type_traits>
#include <vector>

std::string rowFormatString(const std::vector<size_t>& 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 <typename... Types>
void printTable(const std::vector<std::tuple<Types...>>& rows, const std::vector<std::string>& headers) {
// Simply assume that all rows have the same widths
Expand Down

0 comments on commit b0d4257

Please sign in to comment.