entry: remove unread variable in truncateHistory()

This commit is contained in:
Bernhard Kirchen authored and Jonathan White committed 2022-10-02 10:30:20 -04:00
1 parent 2b4d286de6
commit f9f9a34ba3
1 file changed
-2
-2
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) {