diff options
author | Bernhard Kirchen <schlimmchen@posteo.net> | 2022-04-04 16:51:58 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2022-10-02 17:30:20 +0300 |
commit | f9f9a34ba398d71b7afd3015ddc8e76e2d528bc2 (patch) | |
tree | d821eb6c75d55b11911b48962649237085fc10d7 | |
parent | 2b4d286de6a92a87a6e5f007d839009ce4610c9c (diff) |
entry: remove unread variable in truncateHistory()
-rw-r--r-- | src/core/Entry.cpp | 2 |
1 files changed, 0 insertions, 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<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) { |