analyse: remove redundant total size calculation

This commit is contained in:
Danny Robson 2020-12-29 08:37:11 +10:00
parent 69cd8079da
commit 00dc05ac8f

View File

@ -210,16 +210,6 @@ int main (int argc, char const **argv)
output << std::dec << '\n'; output << std::dec << '\n';
} }
std::vector<off64_t> sizes;
std::transform (
src.begin (),
src.end (),
std::back_inserter (sizes),
[] (auto const &val) { return val.size (); }
);
auto const myaccum = std::accumulate (std::begin (sizes), std::end (sizes), 0);
std::cout << myaccum << '\n';
// Find the total and unique byte counts // Find the total and unique byte counts
auto const total_bytes = std::accumulate ( auto const total_bytes = std::accumulate (
src.begin (), src.begin (),