From 9dde68f9180d1824a5c943007a96d05f65b18fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Sad=C5=82ocha?= Date: Thu, 25 Jul 2024 00:54:56 +0100 Subject: [PATCH] Remove unused variables in `task history` implementation (#3564) --- src/commands/CmdHistory.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/commands/CmdHistory.cpp b/src/commands/CmdHistory.cpp index 8e6fa7076..8b8f7ab83 100644 --- a/src/commands/CmdHistory.cpp +++ b/src/commands/CmdHistory.cpp @@ -97,20 +97,12 @@ void CmdHistoryBase::outputGraphical (std::string& output) { unsigned int leftOffset = (widthOfBar * maxAddedLine) / maxLine; - auto totalAdded = 0; - auto totalCompleted = 0; - auto totalDeleted = 0; - time_t priorTime = 0; auto row = 0; for (auto& i : groups) { row = view.addRow (); - totalAdded += addedGroup[i.first]; - totalCompleted += completedGroup[i.first]; - totalDeleted += deletedGroup[i.first]; - HistoryStrategy::insertRowDate (view, row, i.first, priorTime); priorTime = i.first;