From f9f9a34ba398d71b7afd3015ddc8e76e2d528bc2 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Mon, 4 Apr 2022 15:51:58 +0200 Subject: [PATCH] entry: remove unread variable in truncateHistory() --- src/core/Entry.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index f507bed41..ad7ecce2b 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -833,7 +833,6 @@ void Entry::truncateHistory() int histMaxSize = db->metadata()->historyMaxSize(); if (histMaxSize > -1) { int size = 0; - QSet foundAttachments = attachments()->values(); QMutableListIterator i(m_history); i.toBack(); @@ -843,7 +842,6 @@ void Entry::truncateHistory() // don't calculate size if it's already above the maximum if (size <= histMaxSize) { size += historyItem->size(); - foundAttachments += historyItem->attachments()->values(); } if (size > histMaxSize) {