Remove unused variables in task history implementation (#3564)

This commit is contained in:
Adrian Sadłocha 2024-07-25 00:54:56 +01:00 committed by GitHub
parent 4dc3093b22
commit 9dde68f918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,20 +97,12 @@ void CmdHistoryBase<HistoryStrategy>::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;