entry: remove unread variable in truncateHistory()

This commit is contained in:
Bernhard Kirchen 2022-04-04 15:51:58 +02:00 committed by Jonathan White
parent 2b4d286de6
commit f9f9a34ba3

View File

@ -833,7 +833,6 @@ void Entry::truncateHistory()
int histMaxSize = db->metadata()->historyMaxSize();
if (histMaxSize > -1) {
int size = 0;
QSet<QByteArray> foundAttachments = attachments()->values();
QMutableListIterator<Entry*> 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) {