Remove unused variables

This commit is contained in:
Gianluca Recchia 2018-10-31 18:31:01 +01:00 committed by Jonathan White
parent b39522f874
commit 9d106d6bfc
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
4 changed files with 0 additions and 4 deletions

View File

@ -50,7 +50,6 @@ bool Kdbx4Writer::writeDatabase(QIODevice* device, Database* db)
QByteArray masterSeed = randomGen()->randomArray(32); QByteArray masterSeed = randomGen()->randomArray(32);
QByteArray encryptionIV = randomGen()->randomArray(ivSize); QByteArray encryptionIV = randomGen()->randomArray(ivSize);
QByteArray protectedStreamKey = randomGen()->randomArray(64); QByteArray protectedStreamKey = randomGen()->randomArray(64);
QByteArray startBytes;
QByteArray endOfHeader = "\r\n\r\n"; QByteArray endOfHeader = "\r\n\r\n";
if (!db->setKey(db->key(), false, true)) { if (!db->setKey(db->key(), false, true)) {

View File

@ -287,7 +287,6 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type)
// Tint close icon // Tint close icon
auto closeButtonPixmap = d->closeButtonPixmap; auto closeButtonPixmap = d->closeButtonPixmap;
QPixmap mask(closeButtonPixmap);
QPainter painter; QPainter painter;
painter.begin(&closeButtonPixmap); painter.begin(&closeButtonPixmap);
painter.setRenderHints(QPainter::HighQualityAntialiasing); painter.setRenderHints(QPainter::HighQualityAntialiasing);

View File

@ -101,7 +101,6 @@ QVariant AutoTypeMatchModel::data(const QModelIndex& index, int role) const
AutoTypeMatch match = matchFromIndex(index); AutoTypeMatch match = matchFromIndex(index);
if (role == Qt::DisplayRole) { if (role == Qt::DisplayRole) {
QString result;
switch (index.column()) { switch (index.column()) {
case ParentGroup: case ParentGroup:
if (match.entry->group()) { if (match.entry->group()) {

View File

@ -463,7 +463,6 @@ void EditEntryWidget::updateSSHAgentKeyInfo()
void EditEntryWidget::saveSSHAgentConfig() void EditEntryWidget::saveSSHAgentConfig()
{ {
KeeAgentSettings settings; KeeAgentSettings settings;
QString privateKeyPath = m_sshAgentUi->attachmentComboBox->currentText();
settings.setAddAtDatabaseOpen(m_sshAgentUi->addKeyToAgentCheckBox->isChecked()); settings.setAddAtDatabaseOpen(m_sshAgentUi->addKeyToAgentCheckBox->isChecked());
settings.setRemoveAtDatabaseClose(m_sshAgentUi->removeKeyFromAgentCheckBox->isChecked()); settings.setRemoveAtDatabaseClose(m_sshAgentUi->removeKeyFromAgentCheckBox->isChecked());