mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
entry: remove unread variable in truncateHistory()
This commit is contained in:
parent
2b4d286de6
commit
f9f9a34ba3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user