From 00dc05ac8f5ad844a4b8a86929c6a5612bda333b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 29 Dec 2020 08:37:11 +1000 Subject: [PATCH] analyse: remove redundant total size calculation --- tools/analyse.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/analyse.cpp b/tools/analyse.cpp index c2ea8fa..effce36 100644 --- a/tools/analyse.cpp +++ b/tools/analyse.cpp @@ -210,16 +210,6 @@ int main (int argc, char const **argv) output << std::dec << '\n'; } - std::vector 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 auto const total_bytes = std::accumulate ( src.begin (),